mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
18 lines
557 B
Text
18 lines
557 B
Text
error: expected one of `)`, `,`, `@`, or `|`, found `[`
|
|
--> $DIR/pat-lt-bracket-7.rs:5:16
|
|
|
|
|
LL | for Thing(x[]) in foo {}
|
|
| ^
|
|
| |
|
|
| expected one of `)`, `,`, `@`, or `|`
|
|
| help: missing `,`
|
|
|
|
error[E0308]: mismatched types
|
|
--> $DIR/pat-lt-bracket-7.rs:9:30
|
|
|
|
|
LL | const RECOVERY_WITNESS: () = 0;
|
|
| ^ expected `()`, found integer
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|