2020-07-09 02:39:26 +00:00
|
|
|
error[E0769]: tuple variant `S` written as struct variant
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/missing-fields-in-struct-pattern.rs:4:12
|
2018-03-19 06:26:57 +00:00
|
|
|
|
|
|
|
|
LL | if let S { a, b, c, d } = S(1, 2, 3, 4) {
|
2021-02-20 20:33:08 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: use the tuple variant pattern syntax instead
|
|
|
|
|
|
|
|
|
LL | if let S(a, b, c, d) = S(1, 2, 3, 4) {
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~~~~~~
|
2018-03-19 06:26:57 +00:00
|
|
|
|
2020-07-09 02:39:26 +00:00
|
|
|
error: aborting due to previous error
|
2018-03-19 06:26:57 +00:00
|
|
|
|
2020-07-09 02:39:26 +00:00
|
|
|
For more information about this error, try `rustc --explain E0769`.
|