]>
Commit | Line | Data |
---|---|---|
0731742a XL |
1 | // Black and White have the same discriminator value ... |
2 | ||
3 | enum Color { | |
923072b8 | 4 | //~^ ERROR discriminant value `0` assigned more than once |
0731742a XL |
5 | Red = 0xff0000, |
6 | Green = 0x00ff00, | |
7 | Blue = 0x0000ff, | |
8 | Black = 0x000000, | |
923072b8 | 9 | White = 0x000000, |
223e47cc | 10 | } |
970d7e83 | 11 | |
1a4d82fc | 12 | fn main() { } |