summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/better-expected.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/better-expected.stderr')
-rw-r--r--tests/ui/parser/better-expected.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/parser/better-expected.stderr b/tests/ui/parser/better-expected.stderr
new file mode 100644
index 000000000..21bf8d19a
--- /dev/null
+++ b/tests/ui/parser/better-expected.stderr
@@ -0,0 +1,10 @@
+error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `3`
+ --> $DIR/better-expected.rs:2:19
+ |
+LL | let x: [isize 3];
+ | - ^ expected one of 7 possible tokens
+ | |
+ | while parsing the type for `x`
+
+error: aborting due to previous error
+