diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-15524.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-15524.rs b/src/test/ui/issues/issue-15524.rs new file mode 100644 index 000000000..565db2d0f --- /dev/null +++ b/src/test/ui/issues/issue-15524.rs @@ -0,0 +1,16 @@ +const N: isize = 1; + +enum Foo { + //~^ ERROR discriminant value `1` assigned more than once + //~| ERROR discriminant value `1` assigned more than once + //~| ERROR discriminant value `1` assigned more than once + A = 1, + B = 1, + C = 0, + D, + + E = N, + +} + +fn main() {} |