]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/recover-for-loop-parens-around-head.stderr
Rollup merge of #67005 - andrewbanchich:master, r=joshtriplett
[rust.git] / src / test / 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 closing `)`
8   --> $DIR/recover-for-loop-parens-around-head.rs:10:23
9    |
10 LL |     for ( elem in vec ) {
11    |         --------------^
12    |         |
13    |         opening `(`
14    |         help: remove parenthesis in `for` loop: `elem in vec`
15
16 error[E0308]: mismatched types
17   --> $DIR/recover-for-loop-parens-around-head.rs:13:38
18    |
19 LL |         const RECOVERY_WITNESS: () = 0;
20    |                                      ^ expected `()`, found integer
21
22 error: aborting due to 3 previous errors
23
24 For more information about this error, try `rustc --explain E0308`.