summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/recover-enum2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/recover-enum2.stderr')
-rw-r--r--tests/ui/parser/recover-enum2.stderr16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/parser/recover-enum2.stderr b/tests/ui/parser/recover-enum2.stderr
new file mode 100644
index 000000000..7634bca92
--- /dev/null
+++ b/tests/ui/parser/recover-enum2.stderr
@@ -0,0 +1,16 @@
+error: expected type, found `{`
+ --> $DIR/recover-enum2.rs:6:18
+ |
+LL | Var3 {
+ | ---- while parsing this struct
+LL | abc: {},
+ | ^ expected type
+
+error: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `{`
+ --> $DIR/recover-enum2.rs:25:22
+ |
+LL | Nope(i32 {})
+ | ^ expected one of 7 possible tokens
+
+error: aborting due to 2 previous errors
+