summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/issue-36163.rs
blob: 340d2c3997c30f932cb3cf09f42e52c4dad94f47 (plain)
1
2
3
4
5
6
7
const A: isize = Foo::B as isize;

enum Foo {
    B = A, //~ ERROR E0391
}

fn main() {}