rust/src/test/ui/imports/reexports.stderr

35 lines
889 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0364]: `foo` is private, and cannot be re-exported
2018-12-25 15:56:47 +00:00
--> $DIR/reexports.rs:6: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
2018-12-25 15:56:47 +00:00
--> $DIR/reexports.rs:6: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: A non-empty glob must import something with the glob's visibility
2018-12-25 15:56:47 +00:00
--> $DIR/reexports.rs:7:17
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | pub use super::*;
2018-08-08 12:28:26 +00:00
| ^^^^^^^^
error[E0603]: module `foo` is private
2018-12-25 15:56:47 +00:00
--> $DIR/reexports.rs:28:15
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | use b::a::foo::S;
| ^^^
2018-08-08 12:28:26 +00:00
error[E0603]: module `foo` is private
2018-12-25 15:56:47 +00:00
--> $DIR/reexports.rs:29: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;
| ^^^
2018-08-08 12:28:26 +00:00
error: aborting due to 4 previous errors
Some errors occurred: E0364, E0603.
For more information about an error, try `rustc --explain E0364`.