|
LL | pub(in bad::path) mod m1 {}
| ^^^ maybe a missing crate `bad`?
+ |
+ = help: consider adding `extern crate bad` to use the `bad` crate
error[E0742]: visibilities can only be restricted to ancestor modules
--> $DIR/test.rs:51:12
| ^^^^^ private struct
|
note: the struct `Crate` is defined here
- --> $DIR/auxiliary/pub_restricted.rs:3:1
+ --> $DIR/auxiliary/pub_restricted.rs:1:1
|
LL | pub(crate) struct Crate;
| ^^^^^^^^^^^^^^^^^^^^^^^^
LL | u.g();
| ^ private associated function
|
- ::: $DIR/auxiliary/pub_restricted.rs:14:5
+ ::: $DIR/auxiliary/pub_restricted.rs:12:5
|
LL | pub(crate) fn g(&self) {}
| ---------------------- private associated function defined here
LL | u.h();
| ^ private associated function
|
- ::: $DIR/auxiliary/pub_restricted.rs:15:5
+ ::: $DIR/auxiliary/pub_restricted.rs:13:5
|
-LL | crate fn h(&self) {}
- | ----------------- private associated function defined here
+LL | pub(crate) fn h(&self) {}
+ | ---------------------- private associated function defined here
error: aborting due to 12 previous errors