summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-4968.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-4968.rs')
-rw-r--r--tests/ui/issues/issue-4968.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-4968.rs b/tests/ui/issues/issue-4968.rs
new file mode 100644
index 000000000..634bd698d
--- /dev/null
+++ b/tests/ui/issues/issue-4968.rs
@@ -0,0 +1,10 @@
+// Regression test for issue #4968
+
+const A: (isize,isize) = (4,2);
+fn main() {
+ match 42 { A => () }
+ //~^ ERROR mismatched types
+ //~| expected type `{integer}`
+ //~| found tuple `(isize, isize)`
+ //~| expected integer, found tuple
+}