]> git.proxmox.com Git - rustc.git/blob - src/test/ui/pub/issue-33174-restricted-type-in-public-interface.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / pub / issue-33174-restricted-type-in-public-interface.stderr
1 error[E0446]: private type `Snail` in public interface
2 --> $DIR/issue-33174-restricted-type-in-public-interface.rs:18:1
3 |
4 LL | pub(crate) struct Snail;
5 | ----------------------- `Snail` declared as private
6 ...
7 LL | pub type Helix_pomatia = Shell<Snail>;
8 | ^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
9
10 error[E0446]: crate-private type `Turtle` in public interface
11 --> $DIR/issue-33174-restricted-type-in-public-interface.rs:21:1
12 |
13 LL | pub(super) struct Turtle;
14 | ------------------------ `Turtle` declared as crate-private
15 ...
16 LL | pub type Dermochelys_coriacea = Shell<sea::Turtle>;
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak crate-private type
18
19 error[E0446]: private type `Tortoise` in public interface
20 --> $DIR/issue-33174-restricted-type-in-public-interface.rs:24:1
21 |
22 LL | struct Tortoise;
23 | --------------- `Tortoise` declared as private
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`.