]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/tag-variant-disr-dup.rs
Rollup merge of #98640 - cuviper:stable-rust-analyzer, r=Mark-Simulacrum
[rust.git] / src / test / ui / tag-variant-disr-dup.rs
index d2a38e003eabe1ff5f2d1041f90279a558d78184..e497f993da2801ac4b2ad2733c834c56131875ac 100644 (file)
@@ -1,11 +1,12 @@
 // Black and White have the same discriminator value ...
 
 enum Color {
+    //~^ ERROR discriminant value `0` assigned more than once
     Red = 0xff0000,
     Green = 0x00ff00,
     Blue = 0x0000ff,
     Black = 0x000000,
-    White = 0x000000, //~ ERROR discriminant value `0` already exists
+    White = 0x000000,
 }
 
 fn main() { }