]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const-enum-byref.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / consts / const-enum-byref.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
LB
6
7fn f(a: &E) {
8 match *a {
1a4d82fc
JJ
9 E::V => {}
10 E::VV(..) => panic!()
223e47cc
LB
11 }
12}
13
14pub fn main() {
15 f(&C)
16}