]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unique/unique-pat.rs
Merge commit '7b73b60faca71d01d900e49831fcb84553e93019' into sync-rustfmt
[rust.git] / src / test / ui / unique / unique-pat.rs
1 // run-pass
2
3 #![feature(box_patterns)]
4
5 fn simple() {
6     match Box::new(true) {
7       box true => { }
8       _ => { panic!(); }
9     }
10 }
11
12 pub fn main() {
13     simple();
14 }