]> git.proxmox.com Git - rustc.git/blame - src/test/ui/tag-variant-disr-dup.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / tag-variant-disr-dup.rs
CommitLineData
0731742a
XL
1// Black and White have the same discriminator value ...
2
3enum 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 12fn main() { }