]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const-enum-byref-self.rs
Merge branch 'debian/sid' into debian/experimental
[rustc.git] / src / test / ui / consts / const-enum-byref-self.rs
CommitLineData
b7449926 1// run-pass
0bf4aa26 2#![allow(dead_code)]
c34b1796
AL
3
4enum E { V, VV(isize) }
1a4d82fc 5static C: E = E::V;
223e47cc 6
970d7e83
LB
7impl E {
8 pub fn method(&self) {
223e47cc 9 match *self {
1a4d82fc
JJ
10 E::V => {}
11 E::VV(..) => panic!()
223e47cc
LB
12 }
13 }
14}
15
16pub fn main() {
17 C.method()
18}