fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0026]: struct `S` does not have fields named `a`, `b`, `c`, `d` 2 --> $DIR/missing-fields-in-struct-pattern.rs:4:16 3 | 4LL | if let S { a, b, c, d } = S(1, 2, 3, 4) { 5 | ^ ^ ^ ^ struct `S` does not have these fields 6 7error[E0027]: pattern does not mention fields `0`, `1`, `2`, `3` 8 --> $DIR/missing-fields-in-struct-pattern.rs:4:12 9 | 10LL | if let S { a, b, c, d } = S(1, 2, 3, 4) { 11 | ^^^^^^^^^^^^^^^^ missing fields `0`, `1`, `2`, `3` 12 | 13 = note: trying to match a tuple variant with a struct variant pattern 14 15error: aborting due to 2 previous errors 16 17Some errors have detailed explanations: E0026, E0027. 18For more information about an error, try `rustc --explain E0026`.