summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/call-boxed.rs
blob: d19e4596a0cc1ba060c85b4e7757e6978ecea149 (plain)
1
2
3
4
5
6
7
fn main() {
    let mut x = 1i32;
    let y = Box::new(|| 1);
    x = y;
    //~^ ERROR mismatched types
    //~| HELP use parentheses to call this closure
}