Enum variant fields are not allowed to be pub
, so EnumValue::add_pub_field
generates invalid Rust
#86
Labels
pub
, so EnumValue::add_pub_field
generates invalid Rust
#86
When implementing generics, I found an oversight in enum generation:
This does not compile, as the variant fields inherit the visibility of their parent enum:
This method appears to have been copied over from the struct generator code, as the documentation refers to structs. But it should be removed (or deprecated) from the enum variant code.
The text was updated successfully, but these errors were encountered: