fork/rust

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

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

1.39.0
426 B16 linesraw
1error: 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