1 2 3 4 5 6 7
enum X { A = 3, //~^ ERROR custom discriminant values are not allowed in enums with tuple or struct variants B(usize) } fn main() {}