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