about summary refs log tree commit diff
path: root/tests/ui/parser/unnecessary-let.fixed
blob: bdee07e76aaec422a5425ae40f2a851915abaf33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ run-rustfix

fn main() {
    for _x in [1, 2, 3] {}
    //~^ ERROR expected pattern, found `let`
    //~| ERROR missing `in` in `for` loop

    match 1 {
        1 => {}
        //~^ ERROR expected pattern, found `let`
        _ => {}
    }
}