1 error[E0446]: private type `m::Priv` in public interface
2 --> $DIR/private-in-public-assoc-ty.rs:15:9
5 | - `m::Priv` declared as private
8 | ^^^^^^^^^^^^^^ can't leak private type
10 warning: private trait `m::PrivTr` in public interface (error E0445)
11 --> $DIR/private-in-public-assoc-ty.rs:21:5
13 LL | / pub trait PubTr {
18 LL | | fn infer_exist() -> Self::Exist;
22 = note: `#[warn(private_in_public)]` on by default
23 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
24 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
26 warning: private type `m::Priv` in public interface (error E0446)
27 --> $DIR/private-in-public-assoc-ty.rs:21:5
29 LL | / pub trait PubTr {
34 LL | | fn infer_exist() -> Self::Exist;
38 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
39 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
41 warning: private type `m::Priv` in public interface (error E0446)
42 --> $DIR/private-in-public-assoc-ty.rs:21:5
44 LL | / pub trait PubTr {
49 LL | | fn infer_exist() -> Self::Exist;
53 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
54 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
56 error[E0446]: private type `m::Priv` in public interface
57 --> $DIR/private-in-public-assoc-ty.rs:32:9
60 | - `m::Priv` declared as private
62 LL | type Alias4 = Priv;
63 | ^^^^^^^^^^^^^^^^^^^ can't leak private type
65 error[E0446]: private type `m::Priv` in public interface
66 --> $DIR/private-in-public-assoc-ty.rs:39:9
69 | - `m::Priv` declared as private
71 LL | type Alias1 = Priv;
72 | ^^^^^^^^^^^^^^^^^^^ can't leak private type
74 error[E0445]: private trait `m::PrivTr` in public interface
75 --> $DIR/private-in-public-assoc-ty.rs:42:9
78 | - `m::PrivTr` declared as private
80 LL | type Exist = impl PrivTr;
81 | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private trait
83 error[E0445]: private trait `m::PrivTr` in public interface
84 --> $DIR/private-in-public-assoc-ty.rs:42:9
87 | - `m::PrivTr` declared as private
89 LL | type Exist = impl PrivTr;
90 | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private trait
92 error: aborting due to 5 previous errors
94 Some errors have detailed explanations: E0445, E0446.
95 For more information about an error, try `rustc --explain E0445`.