summaryrefslogtreecommitdiffstats
path: root/tests/ui/unique/unique-containing-tag.rs
blob: 6c31ae99b8eefa492ad0db8482c88c3c2daad373 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]

// pretty-expanded FIXME #23616

pub fn main() {
    enum t { t1(isize), t2(isize), }

    let _x: Box<_> = Box::new(t::t1(10));

    /*alt *x {
      t1(a) {
        assert_eq!(a, 10);
      }
      _ { panic!(); }
    }*/

    /*alt x {
      Box::new(t1(a) {
        assert_eq!(a, 10);
      })
      _ { panic!(); }
    }*/
}