@@ -13,14 +13,13 @@ LL | #![deny(private_in_public)]
1313 | ^^^^^^^^^^^^^^^^^
1414
1515warning: associated type `PubTy::PrivAssocTy` is more private than the item `PubAlias0`
16- |
17- note: type alias `PubAlias0` is reachable at visibility `pub`
1816 --> $DIR/private-in-public.rs:12:1
1917 |
2018LL | pub type PubAlias0 = PubTy::PrivAssocTy;
21- | ^^^^^^^^^^^^^^^^^^
19+ | ^^^^^^^^^^^^^^^^^^ type alias `PubAlias0` is reachable at visibility `pub`
20+ |
2221note: but associated type `PubTy::PrivAssocTy` is only usable at visibility `pub(crate)`
23- --> $DIR/private-in-public.rs:24 :5
22+ --> $DIR/private-in-public.rs:27 :5
2423 |
2524LL | type PrivAssocTy = ();
2625 | ^^^^^^^^^^^^^^^^
@@ -31,7 +30,7 @@ LL | #![warn(private_interfaces)]
3130 | ^^^^^^^^^^^^^^^^^^
3231
3332error: private type `PrivTy` in public interface (error E0446)
34- --> $DIR/private-in-public.rs:15 :1
33+ --> $DIR/private-in-public.rs:16 :1
3534 |
3635LL | pub type PubAlias1 = PrivTy::PubAssocTy;
3736 | ^^^^^^^^^^^^^^^^^^
@@ -40,20 +39,19 @@ LL | pub type PubAlias1 = PrivTy::PubAssocTy;
4039 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
4140
4241warning: type `PrivTy` is more private than the item `PubAlias1`
43- |
44- note: type alias `PubAlias1` is reachable at visibility `pub`
45- --> $DIR/private-in-public.rs:15:1
42+ --> $DIR/private-in-public.rs:16:1
4643 |
4744LL | pub type PubAlias1 = PrivTy::PubAssocTy;
48- | ^^^^^^^^^^^^^^^^^^
45+ | ^^^^^^^^^^^^^^^^^^ type alias `PubAlias1` is reachable at visibility `pub`
46+ |
4947note: but type `PrivTy` is only usable at visibility `pub(crate)`
50- --> $DIR/private-in-public.rs:28 :1
48+ --> $DIR/private-in-public.rs:31 :1
5149 |
5250LL | struct PrivTy;
5351 | ^^^^^^^^^^^^^
5452
5553error: private type `PrivTy` in public interface (error E0446)
56- --> $DIR/private-in-public.rs:18 :1
54+ --> $DIR/private-in-public.rs:20 :1
5755 |
5856LL | pub type PubAlias2 = PubTy::PubAssocTy<PrivTy>;
5957 | ^^^^^^^^^^^^^^^^^^
@@ -62,14 +60,13 @@ LL | pub type PubAlias2 = PubTy::PubAssocTy<PrivTy>;
6260 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
6361
6462warning: type `PrivTy` is more private than the item `PubAlias2`
65- |
66- note: type alias `PubAlias2` is reachable at visibility `pub`
67- --> $DIR/private-in-public.rs:18:1
63+ --> $DIR/private-in-public.rs:20:1
6864 |
6965LL | pub type PubAlias2 = PubTy::PubAssocTy<PrivTy>;
70- | ^^^^^^^^^^^^^^^^^^
66+ | ^^^^^^^^^^^^^^^^^^ type alias `PubAlias2` is reachable at visibility `pub`
67+ |
7168note: but type `PrivTy` is only usable at visibility `pub(crate)`
72- --> $DIR/private-in-public.rs:28 :1
69+ --> $DIR/private-in-public.rs:31 :1
7370 |
7471LL | struct PrivTy;
7572 | ^^^^^^^^^^^^^
0 commit comments