2019-01-13 18:50:24 -05:00
|
|
|
error: type `priv_dep::OtherType` from private dependency 'priv_dep' in public interface
|
2019-12-05 16:26:21 -08:00
|
|
|
--> $DIR/pub-priv1.rs:20:5
|
2019-01-13 18:50:24 -05:00
|
|
|
|
|
|
|
|
LL | pub field: OtherType,
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2019-12-05 16:26:21 -08:00
|
|
|
--> $DIR/pub-priv1.rs:3:9
|
2019-01-13 18:50:24 -05:00
|
|
|
|
|
2019-01-20 22:04:22 -05:00
|
|
|
LL | #![deny(exported_private_dependencies)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-01-13 18:50:24 -05:00
|
|
|
|
|
|
|
error: type `priv_dep::OtherType` from private dependency 'priv_dep' in public interface
|
2019-12-05 16:26:21 -08:00
|
|
|
--> $DIR/pub-priv1.rs:27:5
|
2019-01-13 18:50:24 -05:00
|
|
|
|
|
|
|
|
LL | pub fn pub_fn(param: OtherType) {}
|
2020-08-12 17:02:14 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-01-13 18:50:24 -05:00
|
|
|
|
2019-01-13 20:37:27 -05:00
|
|
|
error: trait `priv_dep::OtherTrait` from private dependency 'priv_dep' in public interface
|
2019-12-05 16:26:21 -08:00
|
|
|
--> $DIR/pub-priv1.rs:33:1
|
2019-01-13 20:37:27 -05:00
|
|
|
|
|
|
|
|
LL | / pub trait MyPubTrait {
|
|
|
|
LL | | type Foo: OtherTrait;
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2019-01-13 18:50:24 -05:00
|
|
|
|