summary refs log tree commit diff
path: root/src/test/ui/unique/unique-pat.rs
blob: b32195ac274217b1a2cb5efb1ec57415613a4f8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-pass

#![feature(box_patterns)]
#![feature(box_syntax)]

fn simple() {
    match box true {
      box true => { }
      _ => { panic!(); }
    }
}

pub fn main() {
    simple();
}