2019-10-29 07:59:22 -05:00
|
|
|
error[E0742]: visibilities can only be restricted to ancestor modules
|
2020-01-08 11:02:10 -06:00
|
|
|
--> $DIR/issue-50493.rs:9: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)]
|
2020-03-22 13:18:06 -05:00
|
|
|
| ^^^^^^ private field
|
2019-12-16 07:56:47 -06:00
|
|
|
|
|
|
|
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-12-02 13:27:37 -06:00
|
|
|
|
2020-01-08 11:02:10 -06:00
|
|
|
error[E0616]: field `field` of struct `Restricted` is private
|
|
|
|
--> $DIR/issue-50493.rs:6:10
|
|
|
|
|
|
|
|
|
LL | #[derive(Derive)]
|
2020-03-22 13:18:06 -05:00
|
|
|
| ^^^^^^ private field
|
2019-12-16 07:56:47 -06:00
|
|
|
|
|
|
|
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-01-08 11:02:10 -06:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2018-12-02 13:27:37 -06:00
|
|
|
|
2019-10-29 07:59:22 -05:00
|
|
|
Some errors have detailed explanations: E0616, E0742.
|
2019-10-14 07:07:05 -05:00
|
|
|
For more information about an error, try `rustc --explain E0616`.
|