rust/tests/ui/consts/const-enum-ptr.rs
2023-01-11 09:32:08 +00:00

13 lines
173 B
Rust

// run-pass
#![allow(dead_code)]
enum E { V0, V1(isize) }
static C: &'static E = &E::V0;
pub fn main() {
match *C {
E::V0 => (),
_ => panic!()
}
}