rust/tests/ui/imports/reexports.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

82 lines
2.3 KiB
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0364]: `foo` is private, and cannot be re-exported
2019-10-28 23:20:28 +00:00
--> $DIR/reexports.rs:8:17
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | pub use super::foo;
2018-08-08 12:28:26 +00:00
| ^^^^^^^^^^
|
note: consider marking `foo` as `pub` in the imported module
2019-10-28 23:20:28 +00:00
--> $DIR/reexports.rs:8:17
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | pub use super::foo;
2018-08-08 12:28:26 +00:00
| ^^^^^^^^^^
error[E0603]: module import `foo` is private
--> $DIR/reexports.rs:36:15
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | use b::a::foo::S;
| ^^^ private module import
|
note: the module import `foo` is defined here...
--> $DIR/reexports.rs:24:17
|
LL | pub use super::foo; // This is OK since the value `foo` is visible enough.
| ^^^^^^^^^^
note: ...and refers to the module `foo` which is defined here
--> $DIR/reexports.rs:19:5
|
LL | mod foo {
| ^^^^^^^
2018-08-08 12:28:26 +00:00
error[E0603]: module import `foo` is private
--> $DIR/reexports.rs:37:15
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | use b::b::foo::S as T;
| ^^^ private module import
|
note: the module import `foo` is defined here...
--> $DIR/reexports.rs:29:17
|
LL | pub use super::*; // This is also OK since the value `foo` is visible enough.
| ^^^^^^^^
note: ...and refers to the module `foo` which is defined here
--> $DIR/reexports.rs:19:5
|
LL | mod foo {
| ^^^^^^^
2018-08-08 12:28:26 +00:00
warning: unused import: `super::foo`
--> $DIR/reexports.rs:8:17
|
LL | pub use super::foo;
| ^^^^^^^^^^
|
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
--> $DIR/reexports.rs:1:9
|
LL | #![warn(unused_imports)]
| ^^^^^^^^^^^^^^
warning: glob import doesn't reexport anything with visibility `pub` because no imported item is public enough
--> $DIR/reexports.rs:11:17
|
LL | pub use super::*;
| ^^^^^^^^
|
note: the most public imported item is `pub(a)`
--> $DIR/reexports.rs:11:17
|
LL | pub use super::*;
| ^^^^^^^^
= help: reduce the glob import's visibility or increase visibility of imported items
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 12:28:26 +00:00
Some errors have detailed explanations: E0364, E0603.
2018-08-08 12:28:26 +00:00
For more information about an error, try `rustc --explain E0364`.