rust/tests/ui/issues/issue-40510-2.rs
2023-01-11 09:32:08 +00:00

14 lines
122 B
Rust

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