summaryrefslogtreecommitdiffstats
path: root/src/test/ui/tag-variant-disr-dup.rs
blob: e497f993da2801ac4b2ad2733c834c56131875ac (plain)
1
2
3
4
5
6
7
8
9
10
11
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,
}

fn main() { }