mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
9 lines
188 B
Rust
9 lines
188 B
Rust
struct S(usize, usize, usize, usize);
|
|
|
|
fn main() {
|
|
if let S { a, b, c, d } = S(1, 2, 3, 4) {
|
|
//~^ ERROR tuple variant `S` written as struct variant
|
|
println!("hi");
|
|
}
|
|
}
|