fork/rust

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

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

master
5.5 KiB223 linesraw
1error[E0603]: module `baz` is private
2  --> $DIR/privacy1.rs:132:18
3   |
4LL |         use bar::baz::{foo, bar};
5   |                  ^^^ private module
6   |
7note: the module `baz` is defined here
8  --> $DIR/privacy1.rs:50:5
9   |
10LL |     mod baz {
11   |     ^^^^^^^
12
13error[E0603]: module `baz` is private
14  --> $DIR/privacy1.rs:132:18
15   |
16LL |         use bar::baz::{foo, bar};
17   |                  ^^^ private module
18   |
19note: the module `baz` is defined here
20  --> $DIR/privacy1.rs:50:5
21   |
22LL |     mod baz {
23   |     ^^^^^^^
24
25error[E0603]: module `baz` is private
26  --> $DIR/privacy1.rs:141:18
27   |
28LL |         use bar::baz;
29   |                  ^^^ private module
30   |
31note: the module `baz` is defined here
32  --> $DIR/privacy1.rs:50:5
33   |
34LL |     mod baz {
35   |     ^^^^^^^
36
37error[E0603]: module `i` is private
38  --> $DIR/privacy1.rs:165:20
39   |
40LL |     use self::foo::i::A;
41   |                    ^ private module
42   |
43note: the module `i` is defined here
44  --> $DIR/privacy1.rs:170:9
45   |
46LL |         mod i {
47   |         ^^^^^
48
49error[E0603]: module `baz` is private
50  --> $DIR/privacy1.rs:104:16
51   |
52LL |         ::bar::baz::A::foo();
53   |                ^^^  - struct `A` is not publicly re-exported
54   |                |
55   |                private module
56   |
57note: the module `baz` is defined here
58  --> $DIR/privacy1.rs:50:5
59   |
60LL |     mod baz {
61   |     ^^^^^^^
62
63error[E0603]: module `baz` is private
64  --> $DIR/privacy1.rs:105:16
65   |
66LL |         ::bar::baz::A::bar();
67   |                ^^^  - struct `A` is not publicly re-exported
68   |                |
69   |                private module
70   |
71note: the module `baz` is defined here
72  --> $DIR/privacy1.rs:50:5
73   |
74LL |     mod baz {
75   |     ^^^^^^^
76
77error[E0603]: module `baz` is private
78  --> $DIR/privacy1.rs:107:16
79   |
80LL |         ::bar::baz::A.foo2();
81   |                ^^^  - unit struct `A` is not publicly re-exported
82   |                |
83   |                private module
84   |
85note: the module `baz` is defined here
86  --> $DIR/privacy1.rs:50:5
87   |
88LL |     mod baz {
89   |     ^^^^^^^
90
91error[E0603]: module `baz` is private
92  --> $DIR/privacy1.rs:108:16
93   |
94LL |         ::bar::baz::A.bar2();
95   |                ^^^  - unit struct `A` is not publicly re-exported
96   |                |
97   |                private module
98   |
99note: the module `baz` is defined here
100  --> $DIR/privacy1.rs:50:5
101   |
102LL |     mod baz {
103   |     ^^^^^^^
104
105error[E0603]: trait `B` is private
106  --> $DIR/privacy1.rs:112:16
107   |
108LL |         ::bar::B::foo();
109   |                ^  --- associated function `foo` is not publicly re-exported
110   |                |
111   |                private trait
112   |
113note: the trait `B` is defined here
114  --> $DIR/privacy1.rs:40:5
115   |
116LL |     trait B {
117   |     ^^^^^^^
118
119error[E0603]: function `epriv` is private
120  --> $DIR/privacy1.rs:118:20
121   |
122LL |             ::bar::epriv();
123   |                    ^^^^^ private function
124   |
125note: the function `epriv` is defined here
126  --> $DIR/privacy1.rs:65:9
127   |
128LL |         fn epriv();
129   |         ^^^^^^^^^^^
130
131error[E0603]: module `baz` is private
132  --> $DIR/privacy1.rs:127:16
133   |
134LL |         ::bar::baz::foo();
135   |                ^^^ private module
136   |
137note: the module `baz` is defined here
138  --> $DIR/privacy1.rs:50:5
139   |
140LL |     mod baz {
141   |     ^^^^^^^
142help: consider importing this function through its public re-export instead
143   |
144LL |         bar::foo();
145   |         ~~~~~~~~
146
147error[E0603]: module `baz` is private
148  --> $DIR/privacy1.rs:128:16
149   |
150LL |         ::bar::baz::bar();
151   |                ^^^ private module
152   |
153note: the module `baz` is defined here
154  --> $DIR/privacy1.rs:50:5
155   |
156LL |     mod baz {
157   |     ^^^^^^^
158help: consider importing this function through its public re-export instead
159   |
160LL |         bar::bar();
161   |         ~~~~~~~~
162
163error[E0603]: trait `B` is private
164  --> $DIR/privacy1.rs:157:17
165   |
166LL |     impl ::bar::B for f32 { fn foo() -> f32 { 1.0 } }
167   |                 ^ private trait
168   |
169note: the trait `B` is defined here
170  --> $DIR/privacy1.rs:40:5
171   |
172LL |     trait B {
173   |     ^^^^^^^
174
175error[E0624]: associated function `bar` is private
176  --> $DIR/privacy1.rs:77:23
177   |
178LL |             fn bar() {}
179   |             -------- private associated function defined here
180...
181LL |         self::baz::A::bar();
182   |                       ^^^ private associated function
183
184error[E0624]: associated function `bar` is private
185  --> $DIR/privacy1.rs:95:13
186   |
187LL |         fn bar() {}
188   |         -------- private associated function defined here
189...
190LL |     bar::A::bar();
191   |             ^^^ private associated function
192
193error[E0624]: associated function `bar` is private
194  --> $DIR/privacy1.rs:102:19
195   |
196LL |         fn bar() {}
197   |         -------- private associated function defined here
198...
199LL |         ::bar::A::bar();
200   |                   ^^^ private associated function
201
202error[E0624]: associated function `bar` is private
203  --> $DIR/privacy1.rs:105:24
204   |
205LL |             fn bar() {}
206   |             -------- private associated function defined here
207...
208LL |         ::bar::baz::A::bar();
209   |                        ^^^ private associated function
210
211error[E0624]: method `bar2` is private
212  --> $DIR/privacy1.rs:108:23
213   |
214LL |             fn bar2(&self) {}
215   |             -------------- private method defined here
216...
217LL |         ::bar::baz::A.bar2();
218   |                       ^^^^ private method
219
220error: aborting due to 18 previous errors
221
222Some errors have detailed explanations: E0603, E0624.
223For more information about an error, try `rustc --explain E0603`.