about summary refs log tree commit diff
path: root/tests/ui/suggestions/suggest-box.fixed
blob: 7cd62c43183475747461f9acc8ff4898b5097f3f (plain)
1
2
3
4
5
6
7
8
//@ run-rustfix

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