diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/parser/pat-lt-bracket-7.stderr | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/ui/parser/pat-lt-bracket-7.stderr b/src/test/ui/parser/pat-lt-bracket-7.stderr new file mode 100644 index 000000000..004dcfb2a --- /dev/null +++ b/src/test/ui/parser/pat-lt-bracket-7.stderr @@ -0,0 +1,18 @@ +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`. |