]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/pub-priv-dep/pub-priv1.stderr
9e5bffa6eea3e24bfec543d28ffcdc470618d2ab
[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:22:5
3    |
4 LL |     pub field: OtherType,
5    |     ^^^^^^^^^^^^^^^^^^^^
6    |
7 note: lint level defined here
8   --> $DIR/pub-priv1.rs:5:9
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>
14
15 error: type `priv_dep::OtherType` from private dependency 'priv_dep' in public interface
16   --> $DIR/pub-priv1.rs:30:5
17    |
18 LL |     pub fn pub_fn(param: OtherType) {}
19    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20    |
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>
23
24 error: trait `priv_dep::OtherTrait` from private dependency 'priv_dep' in public interface
25   --> $DIR/pub-priv1.rs:37:1
26    |
27 LL | / pub trait MyPubTrait {
28 LL | |     type Foo: OtherTrait;
29 LL | | }
30    | |_^
31    |
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>
34
35 error: aborting due to 3 previous errors
36