]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/reexports.stderr
Add 'src/tools/rustfmt/' from commit '7872306edf2e11a69aaffb9434088fd66b46a863'
[rust.git] / src / test / ui / imports / reexports.stderr
1 error[E0364]: `foo` is private, and cannot be re-exported
2   --> $DIR/reexports.rs:8:17
3    |
4 LL |         pub use super::foo;
5    |                 ^^^^^^^^^^
6    |
7 note: consider marking `foo` as `pub` in the imported module
8   --> $DIR/reexports.rs:8:17
9    |
10 LL |         pub use super::foo;
11    |                 ^^^^^^^^^^
12
13 error[E0603]: module import `foo` is private
14   --> $DIR/reexports.rs:33:15
15    |
16 LL |     use b::a::foo::S;
17    |               ^^^ private module import
18    |
19 note: the module import `foo` is defined here...
20   --> $DIR/reexports.rs:21:17
21    |
22 LL |         pub use super::foo; // This is OK since the value `foo` is visible enough.
23    |                 ^^^^^^^^^^
24 note: ...and refers to the module `foo` which is defined here
25   --> $DIR/reexports.rs:16:5
26    |
27 LL |     mod foo {
28    |     ^^^^^^^
29
30 error[E0603]: module import `foo` is private
31   --> $DIR/reexports.rs:34:15
32    |
33 LL |     use b::b::foo::S as T;
34    |               ^^^ private module import
35    |
36 note: the module import `foo` is defined here...
37   --> $DIR/reexports.rs:26:17
38    |
39 LL |         pub use super::*; // This is also OK since the value `foo` is visible enough.
40    |                 ^^^^^^^^
41 note: ...and refers to the module `foo` which is defined here
42   --> $DIR/reexports.rs:16:5
43    |
44 LL |     mod foo {
45    |     ^^^^^^^
46
47 warning: glob import doesn't reexport anything because no candidate is public enough
48   --> $DIR/reexports.rs:9:17
49    |
50 LL |         pub use super::*;
51    |                 ^^^^^^^^
52    |
53 note: the lint level is defined here
54   --> $DIR/reexports.rs:1:9
55    |
56 LL | #![warn(unused_imports)]
57    |         ^^^^^^^^^^^^^^
58
59 error: aborting due to 3 previous errors; 1 warning emitted
60
61 Some errors have detailed explanations: E0364, E0603.
62 For more information about an error, try `rustc --explain E0364`.