1 error: type `priv_dep::OtherType` from private dependency 'priv_dep' in public interface
2 --> $DIR/pub-priv1.rs:20:5
4 LL | pub field: OtherType,
7 note: the lint level is defined here
8 --> $DIR/pub-priv1.rs:3:9
10 LL | #![deny(exported_private_dependencies)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 error: type `priv_dep::OtherType` from private dependency 'priv_dep' in public interface
14 --> $DIR/pub-priv1.rs:27:5
16 LL | pub fn pub_fn(param: OtherType) {}
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19 error: trait `priv_dep::OtherTrait` from private dependency 'priv_dep' in public interface
20 --> $DIR/pub-priv1.rs:33:1
22 LL | / pub trait MyPubTrait {
23 LL | | type Foo: OtherTrait;
27 error: aborting due to 3 previous errors