fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
802 B28 linesraw
1error: type `priv_dep::OtherType` from private dependency 'priv_dep' in public interface
2  --> $DIR/pub-priv1.rs:20:5
3   |
4LL |     pub field: OtherType,
5   |     ^^^^^^^^^^^^^^^^^^^^
6   |
7note: lint level defined here
8  --> $DIR/pub-priv1.rs:3:9
9   |
10LL | #![deny(exported_private_dependencies)]
11   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13error: type `priv_dep::OtherType` from private dependency 'priv_dep' in public interface
14  --> $DIR/pub-priv1.rs:27:5
15   |
16LL |     pub fn pub_fn(param: OtherType) {}
17   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
19error: trait `priv_dep::OtherTrait` from private dependency 'priv_dep' in public interface
20  --> $DIR/pub-priv1.rs:33:1
21   |
22LL | / pub trait MyPubTrait {
23LL | |     type Foo: OtherTrait;
24LL | | }
25   | |_^
26
27error: aborting due to 3 previous errors
28