mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
20 lines
542 B
Text
20 lines
542 B
Text
error: expected pattern, found `let`
|
|
--> $DIR/unnecessary-let.rs:2:9
|
|
|
|
|
LL | for let x of [1, 2, 3] {}
|
|
| ^^^ help: remove the unnecessary `let` keyword
|
|
|
|
error: missing `in` in `for` loop
|
|
--> $DIR/unnecessary-let.rs:2:15
|
|
|
|
|
LL | for let x of [1, 2, 3] {}
|
|
| ^^ help: try using `in` here instead
|
|
|
|
error: expected pattern, found `let`
|
|
--> $DIR/unnecessary-let.rs:7:9
|
|
|
|
|
LL | let 1 => {}
|
|
| ^^^ help: remove the unnecessary `let` keyword
|
|
|
|
error: aborting due to 3 previous errors
|
|
|