2019-10-29 07:59:22 -05:00
|
|
|
error[E0742]: visibilities can only be restricted to ancestor modules
|
2018-10-30 16:22:19 -05:00
|
|
|
--> $DIR/relative-2018.rs:7:12
|
|
|
|
|
|
|
|
|
LL | pub(in ::core) struct S4;
|
|
|
|
| ^^^^^^
|
|
|
|
|
2022-04-11 08:15:45 -05:00
|
|
|
error: relative paths are not supported in visibilities in 2018 edition or later
|
2018-10-30 16:22:19 -05:00
|
|
|
--> $DIR/relative-2018.rs:9:12
|
|
|
|
|
|
|
|
|
LL | pub(in a::b) struct S5;
|
|
|
|
| ^---
|
|
|
|
| |
|
|
|
|
| help: try: `crate::a::b`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2019-10-29 07:59:22 -05:00
|
|
|
For more information about this error, try `rustc --explain E0742`.
|