]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/pub-priv-dep/pub-priv1.stderr
Rollup merge of #75837 - GuillaumeGomez:fix-font-color-help-button, r=Cldfire
[rust.git] / src / test / ui / privacy / pub-priv-dep / pub-priv1.stderr
1 error: type `priv_dep::OtherType` from private dependency 'priv_dep' in public interface
2   --> $DIR/pub-priv1.rs:20:5
3    |
4 LL |     pub field: OtherType,
5    |     ^^^^^^^^^^^^^^^^^^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/pub-priv1.rs:3:9
9    |
10 LL | #![deny(exported_private_dependencies)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: type `priv_dep::OtherType` from private dependency 'priv_dep' in public interface
14   --> $DIR/pub-priv1.rs:27:5
15    |
16 LL |     pub fn pub_fn(param: OtherType) {}
17    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
19 error: trait `priv_dep::OtherTrait` from private dependency 'priv_dep' in public interface
20   --> $DIR/pub-priv1.rs:33:1
21    |
22 LL | / pub trait MyPubTrait {
23 LL | |     type Foo: OtherTrait;
24 LL | | }
25    | |_^
26
27 error: aborting due to 3 previous errors
28