2020-09-02 10:40:56 +03:00
|
|
|
error: type `OtherType` from private dependency 'priv_dep' in public interface
|
2021-11-03 20:00:00 -07:00
|
|
|
--> $DIR/pub-priv1.rs:21: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
|
2021-11-03 20:00:00 -07:00
|
|
|
--> $DIR/pub-priv1.rs:4: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
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
error: type `OtherType` from private dependency 'priv_dep' in public interface
|
2021-11-03 20:00:00 -07:00
|
|
|
--> $DIR/pub-priv1.rs:28: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
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
error: trait `OtherTrait` from private dependency 'priv_dep' in public interface
|
2021-11-03 20:00:00 -07:00
|
|
|
--> $DIR/pub-priv1.rs:35:5
|
2019-01-13 20:37:27 -05:00
|
|
|
|
|
2020-06-27 21:36:35 +01:00
|
|
|
LL | type Foo: OtherTrait;
|
2022-02-13 16:27:59 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2019-01-13 20:37:27 -05:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2019-01-13 18:50:24 -05:00
|
|
|
|