]> git.lizzy.rs Git - rust.git/blob - tests/ui/pattern/issue-72574-1.rs
Auto merge of #107143 - compiler-errors:rollup-zabvmo5, r=compiler-errors
[rust.git] / tests / ui / pattern / issue-72574-1.rs
1 fn main() {
2     let x = (1, 2, 3);
3     match x {
4         (_a, _x @ ..) => {}
5         _ => {}
6     }
7 }
8 //~^^^^ ERROR `_x @` is not allowed in a tuple
9 //~| ERROR: `..` patterns are not allowed here
10 //~| ERROR: mismatched types