//@ run-rustfix fn main() { let _x: Box Result<(), ()>> = Box::new(|| { //~ ERROR mismatched types Err(())?; Ok(()) }); }