]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-72574-2.rs
Auto merge of #79113 - andjo403:raw_vec_ptr, r=m-ou-se
[rust.git] / src / test / ui / issues / 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