2018-12-02 13:27:37 -06:00
|
|
|
error: 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
|
|
|
|
|
|
|
|
LL | pub(in restricted) field: usize, //~ visibilities can only be restricted to ancestor modules
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
LL | #[derive(Derive)] //~ ERROR field `field` of struct `Restricted` is private
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0616`.
|