]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unique/unique-containing-tag.rs
Rollup merge of #88858 - spektom:to_lower_upper_rev, r=dtolnay
[rust.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 pub fn main() {
8     enum t { t1(isize), t2(isize), }
9
10     let _x: Box<_> = Box::new(t::t1(10));
11
12     /*alt *x {
13       t1(a) {
14         assert_eq!(a, 10);
15       }
16       _ { panic!(); }
17     }*/
18
19     /*alt x {
20       Box::new(t1(a) {
21         assert_eq!(a, 10);
22       })
23       _ { panic!(); }
24     }*/
25 }