]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/tag-variant-disr-non-nullary.rs
Auto merge of #96711 - emilio:inline-slice-clone, r=nikic
[rust.git] / src / test / ui / parser / tag-variant-disr-non-nullary.rs
1 enum Color {
2     Red = 0xff0000,
3     //~^ ERROR custom discriminant values are not allowed in enums with tuple or struct variants
4     Green = 0x00ff00,
5     Blue = 0x0000ff,
6     Black = 0x000000,
7     White = 0xffffff,
8     Other(usize),
9     Other2(usize, usize),
10 }
11
12 fn main() {}