]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/suggest-box.fixed
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[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 }