1error[E0603]: module `bar` is private
2  --> $DIR/privacy-in-paths.rs:24:16
3   |
4LL |         ::foo::bar::baz::f();
5   |                ^^^ private module
6   |
7note: the module `bar` is defined here
8  --> $DIR/privacy-in-paths.rs:3:5
9   |
10LL |     mod bar {
11   |     ^^^^^^^
12
13error[E0603]: module `bar` is private
14  --> $DIR/privacy-in-paths.rs:25:16
15   |
16LL |         ::foo::bar::S::f();
17   |                ^^^ private module
18   |
19note: the module `bar` is defined here
20  --> $DIR/privacy-in-paths.rs:3:5
21   |
22LL |     mod bar {
23   |     ^^^^^^^
24
25error[E0603]: trait `T` is private
26  --> $DIR/privacy-in-paths.rs:26:23
27   |
28LL |         <() as ::foo::T>::Assoc::f();
29   |                       ^ private trait
30   |
31note: the trait `T` is defined here
32  --> $DIR/privacy-in-paths.rs:8:5
33   |
34LL |     trait T {
35   |     ^^^^^^^
36
37error: aborting due to 3 previous errors
38
39For more information about this error, try `rustc --explain E0603`.
40