1 error: type `priv_dep::OtherType` from private dependency 'priv_dep' in public interface
2 --> $DIR/pub-priv1.rs:22:5
4 LL | pub field: OtherType,
7 note: lint level defined here
8 --> $DIR/pub-priv1.rs:5:9
10 LL | #![deny(external_private_dependency)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
13 = note: for more information, see issue #44663 <https://github.com/rust-lang/rust/issues/44663>
15 error: type `priv_dep::OtherType` from private dependency 'priv_dep' in public interface
16 --> $DIR/pub-priv1.rs:30:5
18 LL | pub fn pub_fn(param: OtherType) {}
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
22 = note: for more information, see issue #44663 <https://github.com/rust-lang/rust/issues/44663>
24 error: trait `priv_dep::OtherTrait` from private dependency 'priv_dep' in public interface
25 --> $DIR/pub-priv1.rs:37:1
27 LL | / pub trait MyPubTrait {
28 LL | | type Foo: OtherTrait;
32 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
33 = note: for more information, see issue #44663 <https://github.com/rust-lang/rust/issues/44663>
35 error: aborting due to 3 previous errors