diff options
Diffstat (limited to 'tests/ui/binding/match-unique-bind.rs')
-rw-r--r-- | tests/ui/binding/match-unique-bind.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/binding/match-unique-bind.rs b/tests/ui/binding/match-unique-bind.rs new file mode 100644 index 000000000..507478983 --- /dev/null +++ b/tests/ui/binding/match-unique-bind.rs @@ -0,0 +1,11 @@ +// run-pass +#![feature(box_patterns)] + +pub fn main() { + match Box::new(100) { + box x => { + println!("{}", x); + assert_eq!(x, 100); + } + } +} |