Add .use block test

This commit is contained in:
Santiago Pastorino 2025-03-17 17:24:02 -03:00
parent e643f59f6d
commit ec3820a10d
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF

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() {}