mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 13:37:37 +00:00
14 lines
247 B
Rust
14 lines
247 B
Rust
![]() |
//@ 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`
|
||
|
_ => {}
|
||
|
}
|
||
|
}
|