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