]>
Commit | Line | Data |
---|---|---|
6a06907d XL |
1 | error[E0603]: crate import `core` is private |
2 | --> $DIR/pub-reexport-priv-extern-crate.rs:10:15 | |
b7449926 | 3 | | |
6a06907d XL |
4 | LL | use foo1::core; |
5 | | ^^^^ private crate import | |
b7449926 | 6 | | |
6a06907d XL |
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 | | ^^^^^^^^^^^^^^^^^^ | |
b7449926 | 12 | |
6a06907d XL |
13 | error[E0603]: crate import `core` is private |
14 | --> $DIR/pub-reexport-priv-extern-crate.rs:17:24 | |
b7449926 | 15 | | |
6a06907d XL |
16 | LL | pub use foo2::bar::core; |
17 | | ^^^^ private crate import | |
b7449926 | 18 | | |
6a06907d XL |
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 | | ^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
24 | |
25 | error: extern crate `core` is private, and cannot be re-exported (error E0365), consider declaring with `pub` | |
6a06907d | 26 | --> $DIR/pub-reexport-priv-extern-crate.rs:2:9 |
b7449926 | 27 | | |
6a06907d XL |
28 | LL | pub use core as reexported_core; |
29 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
b7449926 | 30 | | |
6a06907d | 31 | = note: `#[deny(pub_use_of_private_extern_crate)]` on by default |
b7449926 XL |
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 #34537 <https://github.com/rust-lang/rust/issues/34537> | |
34 | ||
35 | error: aborting due to 3 previous errors | |
36 | ||
6a06907d | 37 | For more information about this error, try `rustc --explain E0603`. |