blob: 499fa8a04f207102d2ee4a2f877264b1800952f8 [file] [log] [blame]
// build-pass (FIXME(62277): could be check-pass?)
#![allow(unused)]
fn f() {
let x: Box<()> = Box::new(());
|| {
&x
};
}
fn main() {}