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