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