]> git.lizzy.rs Git - rust.git/blob - src/test/ui/missing/missing-fields-in-struct-pattern.stderr
Rollup merge of #93813 - xldenis:public-mir-passes, r=wesleywiser
[rust.git] / src / test / ui / missing / missing-fields-in-struct-pattern.stderr
1 error[E0769]: tuple variant `S` written as struct variant
2   --> $DIR/missing-fields-in-struct-pattern.rs:4:12
3    |
4 LL |     if let S { a, b, c, d } = S(1, 2, 3, 4) {
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) {
10    |             ~~~~~~~~~~~~
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0769`.