1 error[E0446]: private type `Priv` in public interface
2 --> $DIR/private-in-public.rs:6:9
5 | ----------- `Priv` declared as private
7 LL | pub(crate) fn g(_: Priv) {}
8 | ^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
10 error[E0446]: private type `Priv` in public interface
11 --> $DIR/private-in-public.rs:7:9
14 | ----------- `Priv` declared as private
16 LL | pub(crate) fn h(_: Priv) {}
17 | ^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0446`.