mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Add .use block test
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
//@ check-pass
|
||||
|
||||
#![feature(ergonomic_clones)]
|
||||
#![allow(incomplete_features)]
|
||||
|
||||
fn use_block_test(x: i32) -> i32 {
|
||||
let x = { let x = x + 1; x }.use;
|
||||
x
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
Reference in New Issue
Block a user