]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/call-boxed.rs
Tweak use of trimmed paths
[rust.git] / tests / ui / suggestions / call-boxed.rs
1 fn main() {
2     let mut x = 1i32;
3     let y = Box::new(|| 1);
4     x = y;
5     //~^ ERROR mismatched types
6     //~| HELP use parentheses to call this closure
7 }