31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
error[E0446]: private type `Snail` in public interface
|
|
--> $DIR/issue-33174-restricted-type-in-public-interface.rs:18:1
|
|
|
|
|
LL | pub(crate) struct Snail;
|
|
| ------------------------ `Snail` declared as private
|
|
...
|
|
LL | pub type Helix_pomatia = Shell<Snail>;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
|
|
|
|
error[E0446]: crate-private type `Turtle` in public interface
|
|
--> $DIR/issue-33174-restricted-type-in-public-interface.rs:21:1
|
|
|
|
|
LL | pub(super) struct Turtle;
|
|
| ------------------------- `Turtle` declared as crate-private
|
|
...
|
|
LL | pub type Dermochelys_coriacea = Shell<sea::Turtle>;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak crate-private type
|
|
|
|
error[E0446]: private type `Tortoise` in public interface
|
|
--> $DIR/issue-33174-restricted-type-in-public-interface.rs:24:1
|
|
|
|
|
LL | struct Tortoise;
|
|
| ---------------- `Tortoise` declared as private
|
|
...
|
|
LL | pub type Testudo_graeca = Shell<Tortoise>;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0446`.
|