]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/tag-variant-disr-non-nullary.rs
Tweak incorrect discriminator value variant error
[rust.git] / src / test / ui / parser / tag-variant-disr-non-nullary.rs
1
2 enum Color {
3     Red = 0xff0000,
4     //~^ ERROR discriminator values can only be used with a field-less enum
5     Green = 0x00ff00,
6     Blue = 0x0000ff,
7     Black = 0x000000,
8     White = 0xffffff,
9     Other (str),
10     //~^ ERROR the size for values of type
11     // the above is kept in order to verify that we get beyond parse errors
12 }
13
14 fn main() {}