11warning: 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
33 |
44LL | pub struct S
55 | ^^^^^^^^^^^^ struct `S` is reachable at visibility `pub`
66 |
77note: 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
99 |
1010LL | trait PrivTr {}
1111 | ^^^^^^^^^^^^
1212 = note: `#[warn(private_bounds)]` on by default
1313
1414warning: 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
1616 |
1717LL | pub enum E
1818 | ^^^^^^^^^^ enum `E` is reachable at visibility `pub`
1919 |
2020note: 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
2222 |
2323LL | trait PrivTr {}
2424 | ^^^^^^^^^^^^
2525
2626warning: 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
2828 |
2929LL | / pub fn f()
3030LL | |
@@ -33,13 +33,13 @@ LL | | PubTy: PrivTr
3333 | |_________________^ function `f` is reachable at visibility `pub`
3434 |
3535note: 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
3737 |
3838LL | trait PrivTr {}
3939 | ^^^^^^^^^^^^
4040
4141warning: 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
4343 |
4444LL | / impl S
4545LL | |
@@ -48,13 +48,13 @@ LL | | PubTy: PrivTr
4848 | |_________________^ implementation `S` is reachable at visibility `pub`
4949 |
5050note: 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
5252 |
5353LL | trait PrivTr {}
5454 | ^^^^^^^^^^^^
5555
5656warning: 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
5858 |
5959LL | / pub fn f()
6060LL | |
@@ -63,7 +63,7 @@ LL | | PubTy: PrivTr
6363 | |_____________________^ associated function `S::f` is reachable at visibility `pub`
6464 |
6565note: 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
6767 |
6868LL | trait PrivTr {}
6969 | ^^^^^^^^^^^^
0 commit comments