summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/pat-lt-bracket-6.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/pat-lt-bracket-6.stderr')
-rw-r--r--src/test/ui/parser/pat-lt-bracket-6.stderr18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/ui/parser/pat-lt-bracket-6.stderr b/src/test/ui/parser/pat-lt-bracket-6.stderr
new file mode 100644
index 000000000..035d0dbfe
--- /dev/null
+++ b/src/test/ui/parser/pat-lt-bracket-6.stderr
@@ -0,0 +1,18 @@
+error: expected one of `)`, `,`, `@`, or `|`, found `[`
+ --> $DIR/pat-lt-bracket-6.rs:5:19
+ |
+LL | let Test(&desc[..]) = x;
+ | ^
+ | |
+ | expected one of `)`, `,`, `@`, or `|`
+ | help: missing `,`
+
+error[E0308]: mismatched types
+ --> $DIR/pat-lt-bracket-6.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`.