fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
833 B27 linesraw
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`.