]> git.proxmox.com Git - rustc.git/blob - tests/ui/privacy/restricted/relative-2018.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / privacy / restricted / relative-2018.stderr
1 error[E0742]: visibilities can only be restricted to ancestor modules
2 --> $DIR/relative-2018.rs:7:12
3 |
4 LL | pub(in ::core) struct S4;
5 | ^^^^^^
6
7 error: relative paths are not supported in visibilities in 2018 edition or later
8 --> $DIR/relative-2018.rs:9:12
9 |
10 LL | pub(in a::b) struct S5;
11 | ^---
12 | |
13 | help: try: `crate::a::b`
14
15 error: aborting due to 2 previous errors
16
17 For more information about this error, try `rustc --explain E0742`.