2019-10-14 07:07:05 -05:00
|
|
|
error[E0741]: visibilities can only be restricted to ancestor modules
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-50493.rs:8:12
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | pub(in restricted) field: usize,
|
2018-12-02 13:27:37 -06:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0616]: field `field` of struct `Restricted` is private
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-50493.rs:6:10
|
2018-12-02 13:27:37 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | #[derive(Derive)]
|
2018-12-02 13:27:37 -06:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2019-10-14 07:07:05 -05:00
|
|
|
Some errors have detailed explanations: E0616, E0741.
|
|
|
|
For more information about an error, try `rustc --explain E0616`.
|