]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unique/unique-pat-3.rs
Pin panic-in-drop=abort test to old pass manager
[rust.git] / src / test / ui / unique / unique-pat-3.rs
1 // run-pass
2 #![allow(dead_code)]
3 #![allow(non_camel_case_types)]
4
5 #![feature(box_syntax)]
6
7 enum bar { u(Box<isize>), w(isize), }
8
9 pub fn main() {
10     assert!(match bar::u(box 10) {
11       bar::u(a) => {
12         println!("{}", a);
13         *a
14       }
15       _ => { 66 }
16     } == 10);
17 }