2018-08-08 07:28:26 -05:00
|
|
|
error[E0364]: `foo` is private, and cannot be re-exported
|
2019-10-28 18:20:28 -05:00
|
|
|
--> $DIR/reexports.rs:8:17
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | pub use super::foo;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: consider marking `foo` as `pub` in the imported module
|
2019-10-28 18:20:28 -05:00
|
|
|
--> $DIR/reexports.rs:8:17
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | pub use super::foo;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2020-01-12 07:20:57 -06:00
|
|
|
error[E0603]: module import `foo` is private
|
2023-10-15 06:38:22 -05:00
|
|
|
--> $DIR/reexports.rs:36:15
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use b::a::foo::S;
|
2020-03-22 17:36:54 -05:00
|
|
|
| ^^^ private module import
|
2020-01-12 07:04:03 -06:00
|
|
|
|
|
2020-03-07 12:18:29 -06:00
|
|
|
note: the module import `foo` is defined here...
|
2023-10-15 06:38:22 -05:00
|
|
|
--> $DIR/reexports.rs:24:17
|
2020-01-12 07:04:03 -06:00
|
|
|
|
|
|
|
|
LL | pub use super::foo; // This is OK since the value `foo` is visible enough.
|
|
|
|
| ^^^^^^^^^^
|
2020-03-07 12:18:29 -06:00
|
|
|
note: ...and refers to the module `foo` which is defined here
|
2023-10-15 06:38:22 -05:00
|
|
|
--> $DIR/reexports.rs:19:5
|
2020-03-07 12:18:29 -06:00
|
|
|
|
|
|
|
|
LL | mod foo {
|
|
|
|
| ^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-01-12 07:20:57 -06:00
|
|
|
error[E0603]: module import `foo` is private
|
2023-10-15 06:38:22 -05:00
|
|
|
--> $DIR/reexports.rs:37:15
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use b::b::foo::S as T;
|
2020-03-22 17:36:54 -05:00
|
|
|
| ^^^ private module import
|
2020-01-12 07:04:03 -06:00
|
|
|
|
|
2020-03-07 12:18:29 -06:00
|
|
|
note: the module import `foo` is defined here...
|
2023-10-15 06:38:22 -05:00
|
|
|
--> $DIR/reexports.rs:29:17
|
2020-01-12 07:04:03 -06:00
|
|
|
|
|
|
|
|
LL | pub use super::*; // This is also OK since the value `foo` is visible enough.
|
|
|
|
| ^^^^^^^^
|
2020-03-07 12:18:29 -06:00
|
|
|
note: ...and refers to the module `foo` which is defined here
|
2023-10-15 06:38:22 -05:00
|
|
|
--> $DIR/reexports.rs:19:5
|
2020-03-07 12:18:29 -06:00
|
|
|
|
|
|
|
|
LL | mod foo {
|
|
|
|
| ^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2023-10-15 06:38:22 -05:00
|
|
|
warning: unused import: `super::foo`
|
|
|
|
--> $DIR/reexports.rs:8:17
|
2019-10-27 18:57:25 -05:00
|
|
|
|
|
2023-10-15 06:38:22 -05:00
|
|
|
LL | pub use super::foo;
|
|
|
|
| ^^^^^^^^^^
|
2019-10-27 18:57:25 -05:00
|
|
|
|
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2019-10-27 18:57:25 -05:00
|
|
|
--> $DIR/reexports.rs:1:9
|
|
|
|
|
|
|
|
|
LL | #![warn(unused_imports)]
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
2023-10-15 06:38:22 -05:00
|
|
|
warning: glob import doesn't reexport anything because no candidate is public enough
|
|
|
|
--> $DIR/reexports.rs:11:17
|
|
|
|
|
|
|
|
|
LL | pub use super::*;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
warning: unused import: `super::*`
|
|
|
|
--> $DIR/reexports.rs:11:17
|
|
|
|
|
|
|
|
|
LL | pub use super::*;
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors; 3 warnings emitted
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0364, E0603.
|
2018-08-08 07:28:26 -05:00
|
|
|
For more information about an error, try `rustc --explain E0364`.
|