]> git.proxmox.com Git - rustc.git/blame - src/test/ui/pub/pub-reexport-priv-extern-crate.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / pub / pub-reexport-priv-extern-crate.stderr
CommitLineData
6a06907d
XL
1error[E0603]: crate import `core` is private
2 --> $DIR/pub-reexport-priv-extern-crate.rs:10:15
b7449926 3 |
6a06907d
XL
4LL | use foo1::core;
5 | ^^^^ private crate import
b7449926 6 |
6a06907d
XL
7note: the crate import `core` is defined here
8 --> $DIR/pub-reexport-priv-extern-crate.rs:6:5
9 |
10LL | extern crate core;
11 | ^^^^^^^^^^^^^^^^^^
b7449926 12
6a06907d
XL
13error[E0603]: crate import `core` is private
14 --> $DIR/pub-reexport-priv-extern-crate.rs:17:24
b7449926 15 |
6a06907d
XL
16LL | pub use foo2::bar::core;
17 | ^^^^ private crate import
b7449926 18 |
6a06907d
XL
19note: the crate import `core` is defined here
20 --> $DIR/pub-reexport-priv-extern-crate.rs:12:9
21 |
22LL | extern crate core;
23 | ^^^^^^^^^^^^^^^^^^
b7449926
XL
24
25error: 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
28LL | 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
35error: aborting due to 3 previous errors
36
6a06907d 37For more information about this error, try `rustc --explain E0603`.