1 warning: private type `PrivTy` in public interface (error E0446)
2 --> $DIR/where-priv-type.rs:19:1
12 = note: `#[warn(private_in_public)]` on by default
13 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
14 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
16 warning: private type `PrivTy` in public interface (error E0446)
17 --> $DIR/where-priv-type.rs:27:1
27 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
28 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
30 warning: private type `PrivTy` in public interface (error E0446)
31 --> $DIR/where-priv-type.rs:35:1
40 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
41 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
43 error[E0446]: private type `PrivTy` in public interface
44 --> $DIR/where-priv-type.rs:43:1
47 | -------------- `PrivTy` declared as private
56 | |_^ can't leak private type
58 warning: private type `PrivTy` in public interface (error E0446)
59 --> $DIR/where-priv-type.rs:48:5
68 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
69 = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
71 error[E0446]: private type `fn(u8) -> u8 {my_const_fn}` in public interface
72 --> $DIR/where-priv-type.rs:80:5
74 LL | type AssocTy = Const<{ my_const_fn(U) }>;
75 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
77 LL | const fn my_const_fn(val: u8) -> u8 {
78 | ----------------------------------- `fn(u8) -> u8 {my_const_fn}` declared as private
80 error: aborting due to 2 previous errors; 4 warnings emitted
82 For more information about this error, try `rustc --explain E0446`.