1 warning: private type `PrivTy` in public interface (error E0446)
2 --> $DIR/where-priv-type.rs:19:1
7 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
9 = note: `#[warn(private_in_public)]` on by default
11 warning: private type `PrivTy` in public interface (error E0446)
12 --> $DIR/where-priv-type.rs:27:1
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 `PrivTy` in public interface (error E0446)
21 --> $DIR/where-priv-type.rs:35:1
30 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
31 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
33 error[E0446]: private type `PrivTy` in public interface
34 --> $DIR/where-priv-type.rs:43:1
37 | ------------- `PrivTy` declared as private
40 | ^^^^^^ can't leak private type
42 warning: private type `PrivTy` in public interface (error E0446)
43 --> $DIR/where-priv-type.rs:48:5
52 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
53 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
55 error[E0446]: private type `fn(u8) -> u8 {my_const_fn}` in public interface
56 --> $DIR/where-priv-type.rs:80:5
58 LL | type AssocTy = Const<{ my_const_fn(U) }>;
59 | ^^^^^^^^^^^^ can't leak private type
61 LL | const fn my_const_fn(val: u8) -> u8 {
62 | ----------------------------------- `fn(u8) -> u8 {my_const_fn}` declared as private
64 error: aborting due to 2 previous errors; 4 warnings emitted
66 For more information about this error, try `rustc --explain E0446`.