summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-15524.rs
blob: 565db2d0fcab82d44251853957b95b8c52b7a37a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const N: isize = 1;

enum Foo {
    //~^ ERROR discriminant value `1` assigned more than once
    //~| ERROR discriminant value `1` assigned more than once
    //~| ERROR discriminant value `1` assigned more than once
    A = 1,
    B = 1,
    C = 0,
    D,

    E = N,

}

fn main() {}