]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/suggest-box.fixed
Auto merge of #65129 - andjo403:cargo_args, r=alexcrichton
[rust.git] / src / test / ui / suggestions / suggest-box.fixed
1 // run-rustfix
2
3 fn main() {
4     let _x: Box<dyn Fn() -> Result<(), ()>> = Box::new(|| { //~ ERROR mismatched types
5         Err(())?;
6         Ok(())
7     });
8 }