fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1warning: type `m1::Priv` is more private than the item `m1::<impl SemiPriv>::f` 2 --> $DIR/issue-30079.rs:6:9 3 | 4LL | pub fn f(_: Priv) {} 5 | ^^^^^^^^^^^^^^^^^ associated function `m1::<impl SemiPriv>::f` is reachable at visibility `pub(crate)` 6 | 7note: but type `m1::Priv` is only usable at visibility `pub(self)` 8 --> $DIR/issue-30079.rs:4:5 9 | 10LL | struct Priv; 11 | ^^^^^^^^^^^ 12 = note: `#[warn(private_interfaces)]` on by default 13 14error[E0446]: private type `m2::Priv` in public interface 15 --> $DIR/issue-30079.rs:17:9 16 | 17LL | struct Priv; 18 | ----------- `m2::Priv` declared as private 19LL | impl ::std::ops::Deref for ::SemiPriv { 20LL | type Target = Priv; 21 | ^^^^^^^^^^^ can't leak private type 22 23error[E0446]: private type `m3::Priv` in public interface 24 --> $DIR/issue-30079.rs:34:9 25 | 26LL | struct Priv; 27 | ----------- `m3::Priv` declared as private 28LL | impl ::SemiPrivTrait for () { 29LL | type Assoc = Priv; 30 | ^^^^^^^^^^ can't leak private type 31 32error: aborting due to 2 previous errors; 1 warning emitted 33 34For more information about this error, try `rustc --explain E0446`.