]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tag-variant-disr-dup.rs
Auto merge of #99028 - tmiasko:inline, r=estebank
[rust.git] / src / test / ui / tag-variant-disr-dup.rs
1 // Black and White have the same discriminator value ...
2
3 enum Color {
4     //~^ ERROR discriminant value `0` assigned more than once
5     Red = 0xff0000,
6     Green = 0x00ff00,
7     Blue = 0x0000ff,
8     Black = 0x000000,
9     White = 0x000000,
10 }
11
12 fn main() { }