]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/unnecessary-let.stderr
Rollup merge of #106043 - c410-f3r:moar-errors, r=petrochenkov
[rust.git] / src / test / ui / parser / unnecessary-let.stderr
1 error: expected pattern, found `let`
2   --> $DIR/unnecessary-let.rs:2:9
3    |
4 LL |     for let x of [1, 2, 3] {}
5    |         ^^^ help: remove the unnecessary `let` keyword
6
7 error: missing `in` in `for` loop
8   --> $DIR/unnecessary-let.rs:2:15
9    |
10 LL |     for let x of [1, 2, 3] {}
11    |               ^^ help: try using `in` here instead
12
13 error: expected pattern, found `let`
14   --> $DIR/unnecessary-let.rs:7:9
15    |
16 LL |         let 1 => {}
17    |         ^^^ help: remove the unnecessary `let` keyword
18
19 error: aborting due to 3 previous errors
20