blob: 6e3316c58958d241b6deabe0f74171777c8f1fc1 [file] [log] [blame]
error[E0446]: private type `PrivateEnum` in public interface
--> $DIR/private_in_public-enum.rs:6:7
|
6 | V(PrivateEnum), //~ ERROR E0446
| ^^^^^^^^^^^ can't leak private type
...
9 | enum PrivateEnum {
| ---------------- `PrivateEnum` declared as private
error[E0446]: private type `foo::PrivateEnum` in public interface
--> $DIR/private_in_public-enum.rs:15:11
|
15 | V(PrivateEnum), //~ ERROR E0446
| ^^^^^^^^^^^ can't leak private type
...
18 | enum PrivateEnum {
| ---------------- `foo::PrivateEnum` declared as private