]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-16648.rs
Rollup merge of #100168 - WaffleLapkin:improve_diagnostics_for_missing_type_in_a_cons...
[rust.git] / src / test / ui / issues / issue-16648.rs
1 // run-pass
2 fn main() {
3     let x: (isize, &[isize]) = (2, &[1, 2]);
4     assert_eq!(match x {
5         (0, &[_, _]) => 0,
6         (1, _) => 1,
7         (2, &[_, _]) => 2,
8         (2, _) => 3,
9         _ => 4
10     }, 2);
11 }