rust/tests/ui/parser/unnecessary-let.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
237 B
Rust
Raw Normal View History

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