summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issue-101477-enum.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/issue-101477-enum.rs')
-rw-r--r--src/test/ui/parser/issue-101477-enum.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/parser/issue-101477-enum.rs b/src/test/ui/parser/issue-101477-enum.rs
new file mode 100644
index 000000000..ea7051d69
--- /dev/null
+++ b/src/test/ui/parser/issue-101477-enum.rs
@@ -0,0 +1,10 @@
+// run-rustfix
+
+#[allow(dead_code)]
+enum Demo {
+ A = 1,
+ B == 2 //~ ERROR unexpected `==`
+ //~^ expected item, found `==`
+}
+
+fn main() {}