rust/tests/ui/parser/recover-for-loop-parens-around-head.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
833 B
Plaintext
Raw Normal View History

2019-10-22 13:46:19 -05:00
error: expected one of `)`, `,`, `@`, or `|`, found keyword `in`
--> $DIR/recover-for-loop-parens-around-head.rs:10:16
|
LL | for ( elem in vec ) {
| ^^ expected one of `)`, `,`, `@`, or `|`
error: unexpected parentheses surrounding `for` loop head
--> $DIR/recover-for-loop-parens-around-head.rs:10:9
|
LL | for ( elem in vec ) {
2021-09-16 23:39:26 -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
|
error[E0308]: mismatched types
--> $DIR/recover-for-loop-parens-around-head.rs:13:38
|
LL | const RECOVERY_WITNESS: () = 0;
| ^ expected `()`, found integer
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0308`.