]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/issue-72574-2.rs
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / pattern / issue-72574-2.rs
1 struct Binder(i32, i32, i32);
2
3 fn main() {
4     let x = Binder(1, 2, 3);
5     match x {
6         Binder(_a, _x @ ..) => {}
7         _ => {}
8     }
9 }
10 //~^^^^ ERROR `_x @` is not allowed in a tuple struct
11 //~| ERROR: `..` patterns are not allowed here
12 //~| ERROR: this pattern has 2 fields, but the corresponding tuple struct has 3 fields