mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
17 lines
195 B
Rust
17 lines
195 B
Rust
//@ run-pass
|
|
#![allow(dead_code)]
|
|
|
|
enum E { V, VV(isize) }
|
|
static C: E = E::V;
|
|
|
|
fn f(a: &E) {
|
|
match *a {
|
|
E::V => {}
|
|
E::VV(..) => panic!()
|
|
}
|
|
}
|
|
|
|
pub fn main() {
|
|
f(&C)
|
|
}
|