summaryrefslogtreecommitdiffstats
path: root/src/test/ui/match/issue-33498.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/match/issue-33498.rs')
-rw-r--r--src/test/ui/match/issue-33498.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/match/issue-33498.rs b/src/test/ui/match/issue-33498.rs
new file mode 100644
index 000000000..9c8a97e7e
--- /dev/null
+++ b/src/test/ui/match/issue-33498.rs
@@ -0,0 +1,11 @@
+// run-pass
+#![allow(unused_variables)]
+pub fn main() {
+ let x = (0, 2);
+
+ match x {
+ (0, ref y) => {}
+ (y, 0) => {}
+ _ => (),
+ }
+}