fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
501 B17 linesraw
1error[E0742]: visibilities can only be restricted to ancestor modules
2  --> $DIR/relative-2018.rs:7:12
3   |
4LL |     pub(in ::core) struct S4;
5   |            ^^^^^^
6
7error: relative paths are not supported in visibilities on 2018 edition
8  --> $DIR/relative-2018.rs:9:12
9   |
10LL |     pub(in a::b) struct S5;
11   |            ^---
12   |            |
13   |            help: try: `crate::a::b`
14
15error: aborting due to 2 previous errors
16
17For more information about this error, try `rustc --explain E0742`.