1 error[E0603]: crate import `core` is private
2 --> $DIR/pub-reexport-priv-extern-crate.rs:10:15
5 | ^^^^ private crate import
7 note: the crate import `core` is defined here
8 --> $DIR/pub-reexport-priv-extern-crate.rs:6:5
10 LL | extern crate core;
13 error[E0603]: crate import `core` is private
14 --> $DIR/pub-reexport-priv-extern-crate.rs:17:24
16 LL | pub use foo2::bar::core;
17 | ^^^^ private crate import
19 note: the crate import `core` is defined here
20 --> $DIR/pub-reexport-priv-extern-crate.rs:12:9
22 LL | extern crate core;
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
28 LL | pub use core as reexported_core;
29 | ^^^^^^^^^^^^^^^^^^^^^^^
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
35 error: aborting due to 3 previous errors
37 For more information about this error, try `rustc --explain E0603`.