]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/suggest-box.fixed
Auto merge of #106399 - estebank:type-err-span-label, r=nagisa
[rust.git] / tests / 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 }