]> git.proxmox.com Git - rustc.git/blame - src/test/ui/missing/missing-fields-in-struct-pattern.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / missing / missing-fields-in-struct-pattern.stderr
CommitLineData
3dfed10e 1error[E0769]: tuple variant `S` written as struct variant
0731742a 2 --> $DIR/missing-fields-in-struct-pattern.rs:4:12
0531ce1d
XL
3 |
4LL | if let S { a, b, c, d } = S(1, 2, 3, 4) {
6a06907d
XL
5 | ^^^^^^^^^^^^^^^^
6 |
7help: use the tuple variant pattern syntax instead
8 |
9LL | if let S(a, b, c, d) = S(1, 2, 3, 4) {
94222f64 10 | ~~~~~~~~~~~~
0531ce1d 11
3dfed10e 12error: aborting due to previous error
0531ce1d 13
3dfed10e 14For more information about this error, try `rustc --explain E0769`.