Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
parser
/
unnecessary-let.rs
blob: a889d9f778977b437cd5250c89a162d8b1eaa1b2 [
file
] [
log
] [
blame
]
//@ run-rustfix
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`
_
=>
{}
}
}