1 error[E0446]: private type `Snail` in public interface
2 --> $DIR/issue-33174-restricted-type-in-public-interface.rs:18:1
4 LL | pub(crate) struct Snail;
5 | ----------------------- `Snail` declared as private
7 LL | pub type Helix_pomatia = Shell<Snail>;
8 | ^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
10 error[E0446]: crate-private type `Turtle` in public interface
11 --> $DIR/issue-33174-restricted-type-in-public-interface.rs:21:1
13 LL | pub(super) struct Turtle;
14 | ------------------------ `Turtle` declared as crate-private
16 LL | pub type Dermochelys_coriacea = Shell<sea::Turtle>;
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak crate-private type
19 error[E0446]: private type `Tortoise` in public interface
20 --> $DIR/issue-33174-restricted-type-in-public-interface.rs:24:1
23 | --------------- `Tortoise` declared as private
25 LL | pub type Testudo_graeca = Shell<Tortoise>;
26 | ^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
28 error: aborting due to 3 previous errors
30 For more information about this error, try `rustc --explain E0446`.