1
1
warning: trait `PrivTr` is more private than the item `S`
2
- --> $DIR/where-pub-type-impls-priv-trait.rs:20 :1
2
+ --> $DIR/where-pub-type-impls-priv-trait.rs:19 :1
3
3
|
4
4
LL | pub struct S
5
5
| ^^^^^^^^^^^^ struct `S` is reachable at visibility `pub`
6
6
|
7
7
note: but trait `PrivTr` is only usable at visibility `pub(crate)`
8
- --> $DIR/where-pub-type-impls-priv-trait.rs:10 :1
8
+ --> $DIR/where-pub-type-impls-priv-trait.rs:9 :1
9
9
|
10
10
LL | trait PrivTr {}
11
11
| ^^^^^^^^^^^^
12
12
= note: `#[warn(private_bounds)]` on by default
13
13
14
14
warning: trait `PrivTr` is more private than the item `E`
15
- --> $DIR/where-pub-type-impls-priv-trait.rs:27 :1
15
+ --> $DIR/where-pub-type-impls-priv-trait.rs:26 :1
16
16
|
17
17
LL | pub enum E
18
18
| ^^^^^^^^^^ enum `E` is reachable at visibility `pub`
19
19
|
20
20
note: but trait `PrivTr` is only usable at visibility `pub(crate)`
21
- --> $DIR/where-pub-type-impls-priv-trait.rs:10 :1
21
+ --> $DIR/where-pub-type-impls-priv-trait.rs:9 :1
22
22
|
23
23
LL | trait PrivTr {}
24
24
| ^^^^^^^^^^^^
25
25
26
26
warning: trait `PrivTr` is more private than the item `f`
27
- --> $DIR/where-pub-type-impls-priv-trait.rs:34 :1
27
+ --> $DIR/where-pub-type-impls-priv-trait.rs:33 :1
28
28
|
29
29
LL | / pub fn f()
30
30
LL | |
@@ -33,13 +33,13 @@ LL | | PubTy: PrivTr
33
33
| |_________________^ function `f` is reachable at visibility `pub`
34
34
|
35
35
note: but trait `PrivTr` is only usable at visibility `pub(crate)`
36
- --> $DIR/where-pub-type-impls-priv-trait.rs:10 :1
36
+ --> $DIR/where-pub-type-impls-priv-trait.rs:9 :1
37
37
|
38
38
LL | trait PrivTr {}
39
39
| ^^^^^^^^^^^^
40
40
41
41
warning: trait `PrivTr` is more private than the item `S`
42
- --> $DIR/where-pub-type-impls-priv-trait.rs:41 :1
42
+ --> $DIR/where-pub-type-impls-priv-trait.rs:40 :1
43
43
|
44
44
LL | / impl S
45
45
LL | |
@@ -48,13 +48,13 @@ LL | | PubTy: PrivTr
48
48
| |_________________^ implementation `S` is reachable at visibility `pub`
49
49
|
50
50
note: but trait `PrivTr` is only usable at visibility `pub(crate)`
51
- --> $DIR/where-pub-type-impls-priv-trait.rs:10 :1
51
+ --> $DIR/where-pub-type-impls-priv-trait.rs:9 :1
52
52
|
53
53
LL | trait PrivTr {}
54
54
| ^^^^^^^^^^^^
55
55
56
56
warning: trait `PrivTr` is more private than the item `S::f`
57
- --> $DIR/where-pub-type-impls-priv-trait.rs:46 :5
57
+ --> $DIR/where-pub-type-impls-priv-trait.rs:45 :5
58
58
|
59
59
LL | / pub fn f()
60
60
LL | |
@@ -63,7 +63,7 @@ LL | | PubTy: PrivTr
63
63
| |_____________________^ associated function `S::f` is reachable at visibility `pub`
64
64
|
65
65
note: but trait `PrivTr` is only usable at visibility `pub(crate)`
66
- --> $DIR/where-pub-type-impls-priv-trait.rs:10 :1
66
+ --> $DIR/where-pub-type-impls-priv-trait.rs:9 :1
67
67
|
68
68
LL | trait PrivTr {}
69
69
| ^^^^^^^^^^^^
0 commit comments