rust/src/test/ui/issues/issue-15524.rs
2018-12-25 21:08:33 -07:00

17 lines
260 B
Rust

const N: isize = 1;
enum Foo {
A = 1,
B = 1,
//~^ ERROR discriminant value `1` already exists
C = 0,
D,
//~^ ERROR discriminant value `1` already exists
E = N,
//~^ ERROR discriminant value `1` already exists
}
fn main() {}