1 error[E0446]: private type `Priv` in public interface
2 --> $DIR/private-in-public-assoc-ty.rs:20:9
5 | ------------ `Priv` declared as private
8 | ^^^^^^^^^^^^^^ can't leak private type
10 warning: private trait `PrivTr` in public interface (error E0445)
11 --> $DIR/private-in-public-assoc-ty.rs:27:9
13 LL | type Alias1: PrivTr;
14 | ^^^^^^^^^^^^^^^^^^^^
16 = note: `#[warn(private_in_public)]` on by default
17 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
18 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
20 warning: private type `Priv` in public interface (error E0446)
21 --> $DIR/private-in-public-assoc-ty.rs:30:9
23 LL | type Alias2: PubTrAux1<Priv> = u8;
24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
27 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
29 warning: private type `Priv` in public interface (error E0446)
30 --> $DIR/private-in-public-assoc-ty.rs:33:9
32 LL | type Alias3: PubTrAux2<A = Priv> = u8;
33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
36 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
38 error[E0446]: private type `Priv` in public interface
39 --> $DIR/private-in-public-assoc-ty.rs:37:9
42 | ------------ `Priv` declared as private
44 LL | type Alias4 = Priv;
45 | ^^^^^^^^^^^^^^^^^^^ can't leak private type
47 error[E0446]: private type `Priv` in public interface
48 --> $DIR/private-in-public-assoc-ty.rs:44:9
51 | ------------ `Priv` declared as private
53 LL | type Alias1 = Priv;
54 | ^^^^^^^^^^^^^^^^^^^ can't leak private type
56 error[E0445]: private trait `PrivTr` in public interface
57 --> $DIR/private-in-public-assoc-ty.rs:47:9
60 | ------------ `PrivTr` declared as private
62 LL | type Exist = impl PrivTr;
63 | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private trait
65 error: aborting due to 4 previous errors; 3 warnings emitted
67 Some errors have detailed explanations: E0445, E0446.
68 For more information about an error, try `rustc --explain E0445`.