2019-10-22 13:46:19 -05:00
|
|
|
error: expected one of `)`, `,`, `@`, or `|`, found keyword `in`
|
2019-07-24 03:26:32 -05:00
|
|
|
--> $DIR/recover-for-loop-parens-around-head.rs:10:16
|
|
|
|
|
|
|
|
|
LL | for ( elem in vec ) {
|
2019-10-28 13:08:53 -05:00
|
|
|
| ^^ expected one of `)`, `,`, `@`, or `|`
|
2019-07-24 03:26:32 -05:00
|
|
|
|
2021-10-17 05:04:01 -05:00
|
|
|
error: unexpected parentheses surrounding `for` loop head
|
2021-06-17 20:22:23 -05:00
|
|
|
--> $DIR/recover-for-loop-parens-around-head.rs:10:9
|
2019-07-24 03:26:32 -05:00
|
|
|
|
|
|
|
|
LL | for ( elem in vec ) {
|
2021-09-16 23:39:26 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
2021-10-17 05:04:01 -05:00
|
|
|
help: remove parentheses in `for` loop
|
2021-09-16 23:39:26 -05:00
|
|
|
|
|
|
|
|
LL - for ( elem in vec ) {
|
|
|
|
LL + for elem in vec {
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-07-24 03:26:32 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/recover-for-loop-parens-around-head.rs:13:38
|
|
|
|
|
|
|
|
|
LL | const RECOVERY_WITNESS: () = 0;
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^ expected `()`, found integer
|
2019-07-24 03:26:32 -05:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|