diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-4968.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-4968.rs b/src/test/ui/issues/issue-4968.rs new file mode 100644 index 000000000..634bd698d --- /dev/null +++ b/src/test/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 +} |