mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 13:49:13 +00:00
14 lines
247 B
Plaintext
14 lines
247 B
Plaintext
//@ 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`
|
|
_ => {}
|
|
}
|
|
}
|