1 #![allow(non_camel_case_types)] // genus is always capitalized
3 pub(crate) struct Snail;
4 //~^ NOTE `Snail` declared as private
7 pub(super) struct Turtle;
8 //~^ NOTE `Turtle` declared as crate-private
12 //~^ NOTE `Tortoise` declared as private
15 pub(crate) creature: T,
18 pub type Helix_pomatia = Shell<Snail>;
19 //~^ ERROR private type `Snail` in public interface
20 //~| NOTE can't leak private type
21 pub type Dermochelys_coriacea = Shell<sea::Turtle>;
22 //~^ ERROR crate-private type `Turtle` in public interface
23 //~| NOTE can't leak crate-private type
24 pub type Testudo_graeca = Shell<Tortoise>;
25 //~^ ERROR private type `Tortoise` in public interface
26 //~| NOTE can't leak private type