//@ 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`
        _ => {}
    }
}
