Add .use block test
This commit is contained in:
parent
e643f59f6d
commit
ec3820a10d
1 changed files with 11 additions and 0 deletions
11
tests/ui/ergonomic-clones/dotuse/block.rs
Normal file
11
tests/ui/ergonomic-clones/dotuse/block.rs
Normal file
|
|
@ -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() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue