Sign in
rust
/
rust
/
08cd08fbef8c6663b052d8d9e4930d5696cbb8a7
/
.
/
tests
/
ui
/
parser
/
unnecessary-let.fixed
blob: bdee07e76aaec422a5425ae40f2a851915abaf33 [
file
]
//@ 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`
_
=>
{}
}
}