16 lines
571 B
Text
16 lines
571 B
Text
![]() |
error[E0769]: tuple variant `E::S` uses a bare index in a struct pattern
|
||
|
--> $DIR/struct-tuple-field-names.rs:8:9
|
||
|
|
|
||
|
LL | E::S { 0, 1 } => {}
|
||
|
| ^^^^^^^^^^^^^ help: use the tuple variant pattern syntax instead: `E::S(_, _)`
|
||
|
|
||
|
error[E0769]: tuple variant `S` written as struct variant
|
||
|
--> $DIR/struct-tuple-field-names.rs:13:9
|
||
|
|
|
||
|
LL | S { } => {}
|
||
|
| ^^^^^ help: use the tuple variant pattern syntax instead: `S(_, _)`
|
||
|
|
||
|
error: aborting due to 2 previous errors
|
||
|
|
||
|
For more information about this error, try `rustc --explain E0769`.
|