]> git.proxmox.com Git - rustc.git/blob - src/test/ui/pattern/issue-74539.rs
New upstream version 1.47.0~beta.2+dfsg1
[rustc.git] / src / test / ui / pattern / issue-74539.rs
1 enum E {
2 A(u8, u8),
3 }
4
5 fn main() {
6 let e = E::A(2, 3);
7 match e {
8 E::A(x @ ..) => {
9 //~^ ERROR: `x @` is not allowed in a tuple struct
10 //~| ERROR: `..` patterns are not allowed here
11 //~| ERROR: this pattern has 1 field, but the corresponding tuple variant has 2 fields
12 x
13 }
14 };
15 }