]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/suggest-box.fixed
Auto merge of #106981 - joboet:std_remove_box_syntax, r=thomcc
[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 }