2021-01-02 10:58:50 +01:00
|
|
|
error[E0559]: variant `Enum::V1` has no field named `x`
|
2025-07-13 16:56:31 -04:00
|
|
|
--> $DIR/enum-variant-field-error-80607.rs:8:16
|
2021-01-02 10:58:50 +01:00
|
|
|
|
|
|
|
|
|
LL | V1(i32),
|
2021-01-02 11:06:30 +01:00
|
|
|
| -- `Enum::V1` defined here
|
2021-01-02 10:58:50 +01:00
|
|
|
...
|
|
|
|
|
LL | Enum::V1 { x }
|
2021-09-01 20:20:46 -07:00
|
|
|
| ^ field does not exist
|
|
|
|
|
|
|
|
|
|
|
help: `Enum::V1` is a tuple variant, use the appropriate syntax
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - Enum::V1 { x }
|
|
|
|
|
LL + Enum::V1(/* i32 */)
|
|
|
|
|
|
|
2021-01-02 10:58:50 +01:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2021-01-02 10:58:50 +01:00
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0559`.
|