2021-02-14 12:14:11 -06:00
|
|
|
error[E0769]: tuple variant `E::S` written as struct variant
|
2021-01-20 20:49:11 -06:00
|
|
|
--> $DIR/struct-tuple-field-names.rs:8:9
|
|
|
|
|
|
|
|
|
LL | E::S { 0, 1 } => {}
|
2021-02-20 14:33:08 -06:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: use the tuple variant pattern syntax instead
|
|
|
|
|
|
|
|
|
LL | E::S(_, _) => {}
|
|
|
|
| ^^^^^^
|
2021-01-20 20:49:11 -06:00
|
|
|
|
|
|
|
error[E0769]: tuple variant `S` written as struct variant
|
|
|
|
--> $DIR/struct-tuple-field-names.rs:13:9
|
|
|
|
|
|
|
|
|
LL | S { } => {}
|
2021-02-20 14:33:08 -06:00
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
help: use the tuple variant pattern syntax instead
|
|
|
|
|
|
|
|
|
LL | S(_, _) => {}
|
|
|
|
| ^^^^^^
|
2021-01-20 20:49:11 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0769`.
|