summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pub/issue-33174-restricted-type-in-public-interface.stderr
blob: 39d4f5ac8d3cf30fa76e0508a87294d5c5d4f843 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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`.