mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
13 lines
174 B
Rust
13 lines
174 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!()
|
|
}
|
|
}
|