fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.2 KiB47 linesraw
1error[E0603]: module `bar` is private
2  --> $DIR/privacy-in-paths.rs:24:16
3   |
4LL |         ::foo::bar::baz::f();
5   |                ^^^       - function `f` is not publicly re-exported
6   |                |
7   |                private module
8   |
9note: the module `bar` is defined here
10  --> $DIR/privacy-in-paths.rs:3:5
11   |
12LL |     mod bar {
13   |     ^^^^^^^
14
15error[E0603]: module `bar` is private
16  --> $DIR/privacy-in-paths.rs:25:16
17   |
18LL |         ::foo::bar::S::f();
19   |                ^^^ private module
20   |
21note: the module `bar` is defined here
22  --> $DIR/privacy-in-paths.rs:3:5
23   |
24LL |     mod bar {
25   |     ^^^^^^^
26help: consider importing this struct through its public re-export instead
27   |
28LL |         foo::S::f();
29   |         ~~~~~~
30
31error[E0603]: trait `T` is private
32  --> $DIR/privacy-in-paths.rs:26:23
33   |
34LL |         <() as ::foo::T>::Assoc::f();
35   |                       ^   ----- associated type `Assoc` is not publicly re-exported
36   |                       |
37   |                       private trait
38   |
39note: the trait `T` is defined here
40  --> $DIR/privacy-in-paths.rs:8:5
41   |
42LL |     trait T {
43   |     ^^^^^^^
44
45error: aborting due to 3 previous errors
46
47For more information about this error, try `rustc --explain E0603`.