fn foo() { let _: Box = Box::new(|| ()); //~^ ERROR mismatched types } fn main() {}