]> git.proxmox.com Git - rustc.git/blob - src/test/ui/unique/unique-containing-tag.rs
New upstream version 1.38.0+dfsg1
[rustc.git] / src / test / ui / unique / unique-containing-tag.rs
1 // run-pass
2 #![allow(dead_code)]
3 #![allow(non_camel_case_types)]
4
5 // pretty-expanded FIXME #23616
6
7 #![feature(box_syntax)]
8
9 pub fn main() {
10 enum t { t1(isize), t2(isize), }
11
12 let _x: Box<_> = box t::t1(10);
13
14 /*alt *x {
15 t1(a) {
16 assert_eq!(a, 10);
17 }
18 _ { panic!(); }
19 }*/
20
21 /*alt x {
22 box t1(a) {
23 assert_eq!(a, 10);
24 }
25 _ { panic!(); }
26 }*/
27 }