diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-16648.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-16648.rs b/src/test/ui/issues/issue-16648.rs new file mode 100644 index 000000000..539f015fa --- /dev/null +++ b/src/test/ui/issues/issue-16648.rs @@ -0,0 +1,11 @@ +// run-pass +fn main() { + let x: (isize, &[isize]) = (2, &[1, 2]); + assert_eq!(match x { + (0, &[_, _]) => 0, + (1, _) => 1, + (2, &[_, _]) => 2, + (2, _) => 3, + _ => 4 + }, 2); +} |