2018-11-13 17:52:26 -06:00
|
|
|
error[E0433]: failed to resolve: maybe a missing `extern crate bad;`?
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/test.rs:50:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2018-11-13 17:52:26 -06:00
|
|
|
LL | pub(in bad::path) mod m1 {} //~ ERROR failed to resolve: maybe a missing `extern crate bad;`?
|
|
|
|
| ^^^ maybe a missing `extern crate bad;`?
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: visibilities can only be restricted to ancestor modules
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/test.rs:51:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | pub(in foo) mod m2 {} //~ ERROR visibilities can only be restricted to ancestor modules
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error[E0364]: `f` is private, and cannot be re-exported
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/test.rs:21:24
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | pub(super) use foo::bar::f as g; //~ ERROR cannot be re-exported
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: consider marking `f` as `pub` in the imported module
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/test.rs:21:24
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | pub(super) use foo::bar::f as g; //~ ERROR cannot be re-exported
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0603]: struct `Crate` is private
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/test.rs:38:25
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | use pub_restricted::Crate; //~ ERROR private
|
2018-10-27 12:21:34 -05:00
|
|
|
| ^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0603]: function `f` is private
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/test.rs:30:19
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | use foo::bar::f; //~ ERROR private
|
2018-10-27 12:21:34 -05:00
|
|
|
| ^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0616]: field `x` of struct `foo::bar::S` is private
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/test.rs:31:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | S::default().x; //~ ERROR private
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0624]: method `f` is private
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/test.rs:32:18
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | S::default().f(); //~ ERROR private
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error[E0624]: method `g` is private
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/test.rs:33:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | S::g(); //~ ERROR private
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error[E0616]: field `y` of struct `pub_restricted::Universe` is private
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/test.rs:42:13
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let _ = u.y; //~ ERROR private
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error[E0616]: field `z` of struct `pub_restricted::Universe` is private
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/test.rs:43:13
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let _ = u.z; //~ ERROR private
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error[E0624]: method `g` is private
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/test.rs:45:7
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | u.g(); //~ ERROR private
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error[E0624]: method `h` is private
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/test.rs:46:7
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | u.h(); //~ ERROR private
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: aborting due to 12 previous errors
|
|
|
|
|
|
|
|
Some errors occurred: E0364, E0433, E0603, E0616, E0624.
|
|
|
|
For more information about an error, try `rustc --explain E0364`.
|