summaryrefslogtreecommitdiffstats
path: root/src/test/ui/binding/match-unique-bind.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/binding/match-unique-bind.rs')
-rw-r--r--src/test/ui/binding/match-unique-bind.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/binding/match-unique-bind.rs b/src/test/ui/binding/match-unique-bind.rs
new file mode 100644
index 000000000..507478983
--- /dev/null
+++ b/src/test/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);
+ }
+ }
+}