]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/recover-for-loop-parens-around-head.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / parser / recover-for-loop-parens-around-head.stderr
1 error: expected one of `)`, `,`, `@`, or `|`, found keyword `in`
2   --> $DIR/recover-for-loop-parens-around-head.rs:10:16
3    |
4 LL |     for ( elem in vec ) {
5    |                ^^ expected one of `)`, `,`, `@`, or `|`
6
7 error: unexpected parentheses surrounding `for` loop head
8   --> $DIR/recover-for-loop-parens-around-head.rs:10:9
9    |
10 LL |     for ( elem in vec ) {
11    |         ^             ^
12    |
13 help: remove parentheses in `for` loop
14    |
15 LL -     for ( elem in vec ) {
16 LL +     for  elem in vec  {
17    |
18
19 error[E0308]: mismatched types
20   --> $DIR/recover-for-loop-parens-around-head.rs:13:38
21    |
22 LL |         const RECOVERY_WITNESS: () = 0;
23    |                                      ^ expected `()`, found integer
24
25 error: aborting due to 3 previous errors
26
27 For more information about this error, try `rustc --explain E0308`.