diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:13 +0000 |
commit | 218caa410aa38c29984be31a5229b9fa717560ee (patch) | |
tree | c54bd55eeb6e4c508940a30e94c0032fbd45d677 /tests/ui/pub/issue-33174-restricted-type-in-public-interface.stderr | |
parent | Releasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/pub/issue-33174-restricted-type-in-public-interface.stderr')
-rw-r--r-- | tests/ui/pub/issue-33174-restricted-type-in-public-interface.stderr | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/ui/pub/issue-33174-restricted-type-in-public-interface.stderr b/tests/ui/pub/issue-33174-restricted-type-in-public-interface.stderr new file mode 100644 index 000000000..39d4f5ac8 --- /dev/null +++ b/tests/ui/pub/issue-33174-restricted-type-in-public-interface.stderr @@ -0,0 +1,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`. |