]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | // run-pass |
0bf4aa26 | 2 | #![allow(dead_code)] |
b7449926 XL |
3 | #![allow(non_camel_case_types)] |
4 | ||
c34b1796 | 5 | enum bar { u(Box<isize>), w(isize), } |
223e47cc LB |
6 | |
7 | pub fn main() { | |
c295e0f8 XL |
8 | let v = match bar::u(10.into()) { |
9 | bar::u(a) => { | |
10 | println!("{}", a); | |
11 | *a | |
12 | } | |
13 | _ => { 66 } | |
14 | }; | |
15 | assert_eq!(v, 10); | |
223e47cc | 16 | } |