]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/issue-72574-1.rs
Auto merge of #100845 - timvermeulen:iter_compare, r=scottmcm
[rust.git] / src / test / 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