@@ -13,14 +13,13 @@ LL | #![deny(private_in_public)]
13
13
| ^^^^^^^^^^^^^^^^^
14
14
15
15
warning: associated type `PubTy::PrivAssocTy` is more private than the item `PubAlias0`
16
- |
17
- note: type alias `PubAlias0` is reachable at visibility `pub`
18
16
--> $DIR/private-in-public.rs:12:1
19
17
|
20
18
LL | pub type PubAlias0 = PubTy::PrivAssocTy;
21
- | ^^^^^^^^^^^^^^^^^^
19
+ | ^^^^^^^^^^^^^^^^^^ type alias `PubAlias0` is reachable at visibility `pub`
20
+ |
22
21
note: 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
24
23
|
25
24
LL | type PrivAssocTy = ();
26
25
| ^^^^^^^^^^^^^^^^
@@ -31,7 +30,7 @@ LL | #![warn(private_interfaces)]
31
30
| ^^^^^^^^^^^^^^^^^^
32
31
33
32
error: private type `PrivTy` in public interface (error E0446)
34
- --> $DIR/private-in-public.rs:15 :1
33
+ --> $DIR/private-in-public.rs:16 :1
35
34
|
36
35
LL | pub type PubAlias1 = PrivTy::PubAssocTy;
37
36
| ^^^^^^^^^^^^^^^^^^
@@ -40,20 +39,19 @@ LL | pub type PubAlias1 = PrivTy::PubAssocTy;
40
39
= note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
41
40
42
41
warning: 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
46
43
|
47
44
LL | pub type PubAlias1 = PrivTy::PubAssocTy;
48
- | ^^^^^^^^^^^^^^^^^^
45
+ | ^^^^^^^^^^^^^^^^^^ type alias `PubAlias1` is reachable at visibility `pub`
46
+ |
49
47
note: 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
51
49
|
52
50
LL | struct PrivTy;
53
51
| ^^^^^^^^^^^^^
54
52
55
53
error: private type `PrivTy` in public interface (error E0446)
56
- --> $DIR/private-in-public.rs:18 :1
54
+ --> $DIR/private-in-public.rs:20 :1
57
55
|
58
56
LL | pub type PubAlias2 = PubTy::PubAssocTy<PrivTy>;
59
57
| ^^^^^^^^^^^^^^^^^^
@@ -62,14 +60,13 @@ LL | pub type PubAlias2 = PubTy::PubAssocTy<PrivTy>;
62
60
= note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
63
61
64
62
warning: 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
68
64
|
69
65
LL | pub type PubAlias2 = PubTy::PubAssocTy<PrivTy>;
70
- | ^^^^^^^^^^^^^^^^^^
66
+ | ^^^^^^^^^^^^^^^^^^ type alias `PubAlias2` is reachable at visibility `pub`
67
+ |
71
68
note: 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
73
70
|
74
71
LL | struct PrivTy;
75
72
| ^^^^^^^^^^^^^
0 commit comments