rust/src/test/ui/proc-macro/issue-50493.stderr

27 lines
890 B
Plaintext
Raw Normal View History

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
|
2019-03-09 06:03:44 -06:00
LL | pub(in restricted) field: usize,
| ^^^^^^^^^^
error[E0616]: field `field` of struct `Restricted` is private
2018-12-25 09:56:47 -06:00
--> $DIR/issue-50493.rs:6:10
|
2019-03-09 06:03:44 -06:00
LL | #[derive(Derive)]
2020-03-22 13:18:06 -05:00
| ^^^^^^ private field
|
= 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[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
|
= 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
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`.