1 error: expected one of `)`, `,`, `@`, or `|`, found keyword `in`
2 --> $DIR/recover-for-loop-parens-around-head.rs:10:16
4 LL | for ( elem in vec ) {
5 | ^^ expected one of `)`, `,`, `@`, or `|`
7 error: unexpected parentheses surrounding `for` loop head
8 --> $DIR/recover-for-loop-parens-around-head.rs:10:9
10 LL | for ( elem in vec ) {
13 help: remove parentheses in `for` loop
15 LL - for ( elem in vec ) {
16 LL + for elem in vec {
19 error[E0308]: mismatched types
20 --> $DIR/recover-for-loop-parens-around-head.rs:13:38
22 LL | const RECOVERY_WITNESS: () = 0;
23 | ^ expected `()`, found integer
25 error: aborting due to 3 previous errors
27 For more information about this error, try `rustc --explain E0308`.