fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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