1 error[E0603]: module `baz` is private
2 --> $DIR/privacy1.rs:132:18
4 LL | use bar::baz::{foo, bar};
7 note: the module `baz` is defined here
8 --> $DIR/privacy1.rs:50:5
13 error[E0603]: module `baz` is private
14 --> $DIR/privacy1.rs:132:18
16 LL | use bar::baz::{foo, bar};
19 note: the module `baz` is defined here
20 --> $DIR/privacy1.rs:50:5
25 error[E0603]: module `baz` is private
26 --> $DIR/privacy1.rs:141:18
31 note: the module `baz` is defined here
32 --> $DIR/privacy1.rs:50:5
37 error[E0603]: module `i` is private
38 --> $DIR/privacy1.rs:165:20
40 LL | use self::foo::i::A;
43 note: the module `i` is defined here
44 --> $DIR/privacy1.rs:170:9
49 error[E0603]: module `baz` is private
50 --> $DIR/privacy1.rs:104:16
52 LL | ::bar::baz::A::foo();
55 note: the module `baz` is defined here
56 --> $DIR/privacy1.rs:50:5
61 error[E0603]: module `baz` is private
62 --> $DIR/privacy1.rs:105:16
64 LL | ::bar::baz::A::bar();
67 note: the module `baz` is defined here
68 --> $DIR/privacy1.rs:50:5
73 error[E0603]: module `baz` is private
74 --> $DIR/privacy1.rs:107:16
76 LL | ::bar::baz::A.foo2();
79 note: the module `baz` is defined here
80 --> $DIR/privacy1.rs:50:5
85 error[E0603]: module `baz` is private
86 --> $DIR/privacy1.rs:108:16
88 LL | ::bar::baz::A.bar2();
91 note: the module `baz` is defined here
92 --> $DIR/privacy1.rs:50:5
97 error[E0603]: trait `B` is private
98 --> $DIR/privacy1.rs:112:16
100 LL | ::bar::B::foo();
103 note: the trait `B` is defined here
104 --> $DIR/privacy1.rs:40:5
109 error[E0603]: function `epriv` is private
110 --> $DIR/privacy1.rs:118:20
113 | ^^^^^ private function
115 note: the function `epriv` is defined here
116 --> $DIR/privacy1.rs:65:9
121 error[E0603]: module `baz` is private
122 --> $DIR/privacy1.rs:127:16
124 LL | ::bar::baz::foo();
127 note: the module `baz` is defined here
128 --> $DIR/privacy1.rs:50:5
133 error[E0603]: module `baz` is private
134 --> $DIR/privacy1.rs:128:16
136 LL | ::bar::baz::bar();
139 note: the module `baz` is defined here
140 --> $DIR/privacy1.rs:50:5
145 error[E0603]: trait `B` is private
146 --> $DIR/privacy1.rs:157:17
148 LL | impl ::bar::B for f32 { fn foo() -> f32 { 1.0 } }
151 note: the trait `B` is defined here
152 --> $DIR/privacy1.rs:40:5
157 error[E0624]: associated function `bar` is private
158 --> $DIR/privacy1.rs:77:23
161 | -------- private associated function defined here
163 LL | self::baz::A::bar();
164 | ^^^ private associated function
166 error[E0624]: associated function `bar` is private
167 --> $DIR/privacy1.rs:95:13
170 | -------- private associated function defined here
173 | ^^^ private associated function
175 error[E0624]: associated function `bar` is private
176 --> $DIR/privacy1.rs:102:19
179 | -------- private associated function defined here
181 LL | ::bar::A::bar();
182 | ^^^ private associated function
184 error[E0624]: associated function `bar` is private
185 --> $DIR/privacy1.rs:105:24
188 | -------- private associated function defined here
190 LL | ::bar::baz::A::bar();
191 | ^^^ private associated function
193 error[E0624]: associated function `bar2` is private
194 --> $DIR/privacy1.rs:108:23
196 LL | fn bar2(&self) {}
197 | -------------- private associated function defined here
199 LL | ::bar::baz::A.bar2();
200 | ^^^^ private associated function
202 error: aborting due to 18 previous errors
204 Some errors have detailed explanations: E0603, E0624.
205 For more information about an error, try `rustc --explain E0603`.