error[E0446]: private type `PrivateDiscriminants` in public interface
This is because the IntoDiscriminant impl of PublicEnum leaks the private PrivateDiscriminants type. Should we maybe exclude the IntoDiscriminant impl when the parent enum is public and the generated enum is private?
The following user code is broken by #377:
With an error message:
This is because the
IntoDiscriminant
impl ofPublicEnum
leaks the privatePrivateDiscriminants
type. Should we maybe exclude theIntoDiscriminant
impl when the parent enum is public and the generated enum is private?