summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/suggest-box.rs
blob: e680a61db3b177cc912c35927b3075019fe58dd2 (plain)
1
2
3
4
5
6
7
8
// run-rustfix

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