]> git.lizzy.rs Git - rust.git/blob - tests/ui/pattern/issue-74539.rs
Rollup merge of #106749 - glandium:dwarf, r=Mark-Simulacrum
[rust.git] / tests / 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 }