fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0742]: visibilities can only be restricted to ancestor modules 2 --> $DIR/issue-50493.rs:9:12 3 | 4LL | pub(in restricted) field: usize, 5 | ^^^^^^^^^^ 6 7error[E0616]: field `field` of struct `Restricted` is private 8 --> $DIR/issue-50493.rs:6:10 9 | 10LL | #[derive(Derive)] 11 | ^^^^^^ 12 | 13 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) 14 15error[E0616]: field `field` of struct `Restricted` is private 16 --> $DIR/issue-50493.rs:6:10 17 | 18LL | #[derive(Derive)] 19 | ^^^^^^ 20 | 21 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) 22 23error: aborting due to 3 previous errors 24 25Some errors have detailed explanations: E0616, E0742. 26For more information about an error, try `rustc --explain E0616`.