]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-16648.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[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 }