1 error: `foo @` is not allowed in a tuple
2 --> $DIR/issue-74702.rs:2:10
4 LL | let (foo @ ..,) = (0, 0);
5 | ^^^^^^^^ this is only allowed in slice patterns
7 = help: remove this and bind each tuple field independently
8 help: if you don't need to use the contents of foo, discard the tuple's remaining fields
10 LL | let (..,) = (0, 0);
13 error: `..` patterns are not allowed here
14 --> $DIR/issue-74702.rs:2:16
16 LL | let (foo @ ..,) = (0, 0);
19 = note: only allowed in tuple, tuple struct, and slice patterns
21 error[E0308]: mismatched types
22 --> $DIR/issue-74702.rs:2:9
24 LL | let (foo @ ..,) = (0, 0);
25 | ^^^^^^^^^^^ ------ this expression has type `({integer}, {integer})`
27 | expected a tuple with 2 elements, found one with 1 element
29 = note: expected tuple `({integer}, {integer})`
32 error: aborting due to 3 previous errors
34 For more information about this error, try `rustc --explain E0308`.