summaryrefslogtreecommitdiffstats
path: root/tests/ui/binding/match-unsized.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/binding/match-unsized.rs')
-rw-r--r--tests/ui/binding/match-unsized.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/binding/match-unsized.rs b/tests/ui/binding/match-unsized.rs
new file mode 100644
index 000000000..41937a557
--- /dev/null
+++ b/tests/ui/binding/match-unsized.rs
@@ -0,0 +1,9 @@
+// run-pass
+fn main() {
+ let data: &'static str = "Hello, World!";
+ match data {
+ &ref xs => {
+ assert_eq!(data, xs);
+ }
+ }
+}