summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-enum-ptr.rs
blob: 84f4eb8406dc6fff4f32bd2129d735f0af0306a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-pass
#![allow(dead_code)]

enum E { V0, V1(isize) }
static C: &'static E = &E::V0;

pub fn main() {
    match *C {
        E::V0 => (),
        _ => panic!()
    }
}