Add .use block test

This commit is contained in:
Santiago Pastorino
2025-03-17 17:24:02 -03:00
parent e643f59f6d
commit ec3820a10d
+11
View 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() {}