]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-72574-1.rs
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[rust.git] / src / test / ui / issues / 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