]>
Commit | Line | Data |
---|---|---|
3dfed10e | 1 | error[E0769]: tuple variant `S` written as struct variant |
0731742a | 2 | --> $DIR/missing-fields-in-struct-pattern.rs:4:12 |
0531ce1d XL |
3 | | |
4 | LL | if let S { a, b, c, d } = S(1, 2, 3, 4) { | |
6a06907d XL |
5 | | ^^^^^^^^^^^^^^^^ |
6 | | | |
7 | help: use the tuple variant pattern syntax instead | |
8 | | | |
9 | LL | if let S(a, b, c, d) = S(1, 2, 3, 4) { | |
94222f64 | 10 | | ~~~~~~~~~~~~ |
0531ce1d | 11 | |
3dfed10e | 12 | error: aborting due to previous error |
0531ce1d | 13 | |
3dfed10e | 14 | For more information about this error, try `rustc --explain E0769`. |