rust/tests/ui/nll/issue-40510-2.rs
2024-04-07 17:38:07 -03:00

14 lines
123 B
Rust

//@ check-pass
#![allow(unused)]
fn f() {
let x: Box<()> = Box::new(());
|| {
&x
};
}
fn main() {}