2021-01-28 15:59:20 -06:00
|
|
|
error[E0603]: crate import `core` is private
|
|
|
|
--> $DIR/pub-reexport-priv-extern-crate.rs:10:15
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-01-28 15:59:20 -06:00
|
|
|
LL | use foo1::core;
|
|
|
|
| ^^^^ private crate import
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-01-28 15:59:20 -06:00
|
|
|
note: the crate import `core` is defined here
|
|
|
|
--> $DIR/pub-reexport-priv-extern-crate.rs:6:5
|
|
|
|
|
|
|
|
|
LL | extern crate core;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2021-01-28 15:59:20 -06:00
|
|
|
error[E0603]: crate import `core` is private
|
|
|
|
--> $DIR/pub-reexport-priv-extern-crate.rs:17:24
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-01-28 15:59:20 -06:00
|
|
|
LL | pub use foo2::bar::core;
|
|
|
|
| ^^^^ private crate import
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-01-28 15:59:20 -06:00
|
|
|
note: the crate import `core` is defined here
|
|
|
|
--> $DIR/pub-reexport-priv-extern-crate.rs:12:9
|
|
|
|
|
|
|
|
|
LL | extern crate core;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: extern crate `core` is private, and cannot be re-exported (error E0365), consider declaring with `pub`
|
2021-01-28 15:59:20 -06:00
|
|
|
--> $DIR/pub-reexport-priv-extern-crate.rs:2:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-01-28 15:59:20 -06:00
|
|
|
LL | pub use core as reexported_core;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
= note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
|
2022-09-18 10:55:36 -05:00
|
|
|
= note: `#[deny(pub_use_of_private_extern_crate)]` on by default
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2021-01-28 15:59:20 -06:00
|
|
|
For more information about this error, try `rustc --explain E0603`.
|