Skip to content

Commit ec3820a

Browse files
committed
Add .use block test
1 parent e643f59 commit ec3820a

File tree

1 file changed

+11
-0
lines changed
  • tests/ui/ergonomic-clones/dotuse

1 file changed

+11
-0
lines changed
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//@ check-pass
2+
3+
#![feature(ergonomic_clones)]
4+
#![allow(incomplete_features)]
5+
6+
fn use_block_test(x: i32) -> i32 {
7+
let x = { let x = x + 1; x }.use;
8+
x
9+
}
10+
11+
fn main() {}

0 commit comments

Comments
 (0)