about summary refs log tree commit diff
path: root/tests/ui/binding/match-unique-bind.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/binding/match-unique-bind.rs')
-rw-r--r--tests/ui/binding/match-unique-bind.rs11
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 00000000000..507478983f6
--- /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);
+      }
+    }
+}