1 error[E0446]: private type `m1::Priv` in public interface
2 --> $DIR/private-in-public-lint.rs:6:9
5 | ------------ `m1::Priv` declared as private
7 LL | pub fn f() -> Priv {Priv}
8 | ^^^^^^^^^^^^^^^^^^ can't leak private type
10 error[E0446]: private type `m2::Priv` in public interface
11 --> $DIR/private-in-public-lint.rs:15:9
14 | ------------ `m2::Priv` declared as private
16 LL | pub fn f() -> Priv {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`.