summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/recover-enum.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/recover-enum.rs')
-rw-r--r--tests/ui/parser/recover-enum.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/parser/recover-enum.rs b/tests/ui/parser/recover-enum.rs
new file mode 100644
index 000000000..08dd939e2
--- /dev/null
+++ b/tests/ui/parser/recover-enum.rs
@@ -0,0 +1,11 @@
+fn main() {
+ enum Test {
+ Very //~ HELP missing `,`
+ Bad(usize) //~ HELP missing `,`
+ //~^ ERROR expected one of `(`, `,`, `=`, `{`, or `}`, found `Bad`
+ Stuff { a: usize } //~ HELP missing `,`
+ //~^ ERROR expected one of `,`, `=`, or `}`, found `Stuff`
+ Here
+ //~^ ERROR expected one of `,`, `=`, or `}`, found `Here`
+ }
+}