2024-11-15 02:27:51 +00:00
|
|
|
//@ run-rustfix
|
|
|
|
|
2022-09-03 05:39:46 +00:00
|
|
|
fn main() {
|
2024-11-15 02:27:51 +00:00
|
|
|
for let _x of [1, 2, 3] {}
|
2022-09-03 05:39:46 +00:00
|
|
|
//~^ ERROR expected pattern, found `let`
|
|
|
|
//~| ERROR missing `in` in `for` loop
|
|
|
|
|
|
|
|
match 1 {
|
|
|
|
let 1 => {}
|
|
|
|
//~^ ERROR expected pattern, found `let`
|
|
|
|
_ => {}
|
|
|
|
}
|
|
|
|
}
|