fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error: expected one of `)`, `,`, `@`, or `|`, found `in` 2 --> $DIR/recover-for-loop-parens-around-head.rs:10:16 3 | 4LL | for ( elem in vec ) { 5 | ^^ expected one of `)`, `,`, `@`, or `|` here 6 7error: unexpected closing `)` 8 --> $DIR/recover-for-loop-parens-around-head.rs:10:23 9 | 10LL | for ( elem in vec ) { 11 | --------------^ 12 | | 13 | opening `(` 14 | help: remove parenthesis in `for` loop: `elem in vec` 15 16error[E0308]: mismatched types 17 --> $DIR/recover-for-loop-parens-around-head.rs:13:38 18 | 19LL | const RECOVERY_WITNESS: () = 0; 20 | ^ expected (), found integer 21 | 22 = note: expected type `()` 23 found type `{integer}` 24 25error: aborting due to 3 previous errors 26 27For more information about this error, try `rustc --explain E0308`.