summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/tag-variant-disr-non-nullary.rs
blob: a9cfdd549c752233f40a6608474f7a9d362ee375 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
enum Color {
    Red = 0xff0000,
    //~^ ERROR custom discriminant values are not allowed in enums with tuple or struct variants
    Green = 0x00ff00,
    Blue = 0x0000ff,
    Black = 0x000000,
    White = 0xffffff,
    Other(usize),
    Other2(usize, usize),
}

fn main() {}