mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
12 lines
237 B
Rust
12 lines
237 B
Rust
fn main() {
|
|
for let x of [1, 2, 3] {}
|
|
//~^ ERROR expected pattern, found `let`
|
|
//~| ERROR missing `in` in `for` loop
|
|
|
|
match 1 {
|
|
let 1 => {}
|
|
//~^ ERROR expected pattern, found `let`
|
|
_ => {}
|
|
}
|
|
}
|