mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
11 lines
224 B
Rust
11 lines
224 B
Rust
fn main() {
|
|
let x = (1, 2, 3);
|
|
match x {
|
|
(_a, _x @ ..) => {}
|
|
_ => {}
|
|
}
|
|
}
|
|
//~^^^^ ERROR `_x @` is not allowed in a tuple
|
|
//~| ERROR: `..` patterns are not allowed here
|
|
//~| ERROR: mismatched types
|