]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/suggest-box.rs
Rollup merge of #106106 - jyn514:remote-tracking-branch, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / suggest-box.rs
1 // run-rustfix
2
3 fn main() {
4     let _x: Box<dyn Fn() -> Result<(), ()>> = || { //~ ERROR mismatched types
5         Err(())?;
6         Ok(())
7     };
8 }