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