fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
422 B15 linesraw
1error: visibilities can only be restricted to ancestor modules
2  --> $DIR/issue-50493.rs:8: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
13error: aborting due to 2 previous errors
14
15For more information about this error, try `rustc --explain E0616`.