summaryrefslogtreecommitdiff
path: root/tests/ui/suggestions/type-ascription-instead-of-let.fixed
blob: e3d03b6f22ad6a01ce3bfb7feaebfb316bc8d338 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-rustfix

fn fun(x: i32) -> i32 { x }

fn main() {
    let _closure_annotated = |value: i32| -> i32 {
        let temp: i32 = fun(5i32);
        //~^ ERROR expected identifier, found `:`
        temp + value + 1
    };
}