rust/tests/ui/suggestions/call-boxed.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
158 B
Rust
Raw Normal View History

2022-08-27 20:53:04 +00:00
fn main() {
let mut x = 1i32;
let y = Box::new(|| 1);
x = y;
//~^ ERROR mismatched types
//~| HELP use parentheses to call this closure
}