rust/tests/ui/parser/pat-lt-bracket-7.stderr

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

19 lines
557 B
Plaintext
Raw Normal View History

error: expected one of `)`, `,`, `@`, or `|`, found `[`
2019-07-24 00:30:37 +00:00
--> $DIR/pat-lt-bracket-7.rs:5:16
2018-10-20 20:36:17 +00:00
|
2019-07-24 00:30:37 +00:00
LL | for Thing(x[]) in foo {}
| ^
| |
| expected one of `)`, `,`, `@`, or `|`
| help: missing `,`
2018-10-20 20:36:17 +00:00
2019-07-24 00:30:37 +00:00
error[E0308]: mismatched types
--> $DIR/pat-lt-bracket-7.rs:9:30
|
2019-07-24 00:30:37 +00:00
LL | const RECOVERY_WITNESS: () = 0;
| ^ expected `()`, found integer
2019-07-24 00:30:37 +00:00
error: aborting due to 2 previous errors
2018-10-20 20:36:17 +00:00
2019-07-24 00:30:37 +00:00
For more information about this error, try `rustc --explain E0308`.