]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pub/pub-reexport-priv-extern-crate.stderr
Rollup merge of #106043 - c410-f3r:moar-errors, r=petrochenkov
[rust.git] / src / test / ui / pub / pub-reexport-priv-extern-crate.stderr
1 error[E0603]: crate import `core` is private
2   --> $DIR/pub-reexport-priv-extern-crate.rs:10:15
3    |
4 LL |     use foo1::core;
5    |               ^^^^ private crate import
6    |
7 note: the crate import `core` is defined here
8   --> $DIR/pub-reexport-priv-extern-crate.rs:6:5
9    |
10 LL |     extern crate core;
11    |     ^^^^^^^^^^^^^^^^^^
12
13 error[E0603]: crate import `core` is private
14   --> $DIR/pub-reexport-priv-extern-crate.rs:17:24
15    |
16 LL |     pub use foo2::bar::core;
17    |                        ^^^^ private crate import
18    |
19 note: the crate import `core` is defined here
20   --> $DIR/pub-reexport-priv-extern-crate.rs:12:9
21    |
22 LL |         extern crate core;
23    |         ^^^^^^^^^^^^^^^^^^
24
25 error: extern crate `core` is private, and cannot be re-exported (error E0365), consider declaring with `pub`
26   --> $DIR/pub-reexport-priv-extern-crate.rs:2:9
27    |
28 LL | pub use core as reexported_core;
29    |         ^^^^^^^^^^^^^^^^^^^^^^^
30    |
31    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
32    = note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
33    = note: `#[deny(pub_use_of_private_extern_crate)]` on by default
34
35 error: aborting due to 3 previous errors
36
37 For more information about this error, try `rustc --explain E0603`.