diff options
Diffstat (limited to 'src/test/ui/parser/issue-101477-enum.rs')
-rw-r--r-- | src/test/ui/parser/issue-101477-enum.rs | 10 |
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() {} |