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