fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.0 KiB40 linesraw
1error[E0364]: `foo` is private, and cannot be re-exported
2  --> $DIR/reexports.rs:8:17
3   |
4LL |         pub use super::foo;
5   |                 ^^^^^^^^^^
6   |
7note: consider marking `foo` as `pub` in the imported module
8  --> $DIR/reexports.rs:8:17
9   |
10LL |         pub use super::foo;
11   |                 ^^^^^^^^^^
12
13error[E0603]: module `foo` is private
14  --> $DIR/reexports.rs:33:15
15   |
16LL |     use b::a::foo::S;
17   |               ^^^
18
19error[E0603]: module `foo` is private
20  --> $DIR/reexports.rs:34:15
21   |
22LL |     use b::b::foo::S as T;
23   |               ^^^
24
25warning: glob import doesn't reexport anything because no candidate is public enough
26  --> $DIR/reexports.rs:9:17
27   |
28LL |         pub use super::*;
29   |                 ^^^^^^^^
30   |
31note: lint level defined here
32  --> $DIR/reexports.rs:1:9
33   |
34LL | #![warn(unused_imports)]
35   |         ^^^^^^^^^^^^^^
36
37error: aborting due to 3 previous errors
38
39Some errors have detailed explanations: E0364, E0603.
40For more information about an error, try `rustc --explain E0364`.