diff options
Diffstat (limited to 'src/test/ui/unique/unique-pat.rs')
-rw-r--r-- | src/test/ui/unique/unique-pat.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/unique/unique-pat.rs b/src/test/ui/unique/unique-pat.rs new file mode 100644 index 000000000..c2474d0e7 --- /dev/null +++ b/src/test/ui/unique/unique-pat.rs @@ -0,0 +1,14 @@ +// run-pass + +#![feature(box_patterns)] + +fn simple() { + match Box::new(true) { + box true => { } + _ => { panic!(); } + } +} + +pub fn main() { + simple(); +} |