fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
4.3 KiB190 linesraw
1error[E0603]: module `baz` is private
2  --> $DIR/privacy1.rs:132:18
3   |
4LL |         use bar::baz::{foo, bar};
5   |                  ^^^ this module is private
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   |                  ^^^ this module is private
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   |                  ^^^ this module is private
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   |                    ^ this module is private
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   |                ^^^ this module is private
54   |
55note: the module `baz` is defined here
56  --> $DIR/privacy1.rs:50:5
57   |
58LL |     mod baz {
59   |     ^^^^^^^
60
61error[E0603]: module `baz` is private
62  --> $DIR/privacy1.rs:105:16
63   |
64LL |         ::bar::baz::A::bar();
65   |                ^^^ this module is private
66   |
67note: the module `baz` is defined here
68  --> $DIR/privacy1.rs:50:5
69   |
70LL |     mod baz {
71   |     ^^^^^^^
72
73error[E0603]: module `baz` is private
74  --> $DIR/privacy1.rs:107:16
75   |
76LL |         ::bar::baz::A.foo2();
77   |                ^^^ this module is private
78   |
79note: the module `baz` is defined here
80  --> $DIR/privacy1.rs:50:5
81   |
82LL |     mod baz {
83   |     ^^^^^^^
84
85error[E0603]: module `baz` is private
86  --> $DIR/privacy1.rs:108:16
87   |
88LL |         ::bar::baz::A.bar2();
89   |                ^^^ this module is private
90   |
91note: the module `baz` is defined here
92  --> $DIR/privacy1.rs:50:5
93   |
94LL |     mod baz {
95   |     ^^^^^^^
96
97error[E0603]: trait `B` is private
98  --> $DIR/privacy1.rs:112:16
99   |
100LL |         ::bar::B::foo();
101   |                ^ this trait is private
102   |
103note: the trait `B` is defined here
104  --> $DIR/privacy1.rs:40:5
105   |
106LL |     trait B {
107   |     ^^^^^^^
108
109error[E0603]: function `epriv` is private
110  --> $DIR/privacy1.rs:118:20
111   |
112LL |             ::bar::epriv();
113   |                    ^^^^^ this function is private
114   |
115note: the function `epriv` is defined here
116  --> $DIR/privacy1.rs:65:9
117   |
118LL |         fn epriv();
119   |         ^^^^^^^^^^^
120
121error[E0603]: module `baz` is private
122  --> $DIR/privacy1.rs:127:16
123   |
124LL |         ::bar::baz::foo();
125   |                ^^^ this module is private
126   |
127note: the module `baz` is defined here
128  --> $DIR/privacy1.rs:50:5
129   |
130LL |     mod baz {
131   |     ^^^^^^^
132
133error[E0603]: module `baz` is private
134  --> $DIR/privacy1.rs:128:16
135   |
136LL |         ::bar::baz::bar();
137   |                ^^^ this module is private
138   |
139note: the module `baz` is defined here
140  --> $DIR/privacy1.rs:50:5
141   |
142LL |     mod baz {
143   |     ^^^^^^^
144
145error[E0603]: trait `B` is private
146  --> $DIR/privacy1.rs:157:17
147   |
148LL |     impl ::bar::B for f32 { fn foo() -> f32 { 1.0 } }
149   |                 ^ this trait is private
150   |
151note: the trait `B` is defined here
152  --> $DIR/privacy1.rs:40:5
153   |
154LL |     trait B {
155   |     ^^^^^^^
156
157error[E0624]: method `bar` is private
158  --> $DIR/privacy1.rs:77:9
159   |
160LL |         self::baz::A::bar();
161   |         ^^^^^^^^^^^^^^^^^
162
163error[E0624]: method `bar` is private
164  --> $DIR/privacy1.rs:95:5
165   |
166LL |     bar::A::bar();
167   |     ^^^^^^^^^^^
168
169error[E0624]: method `bar` is private
170  --> $DIR/privacy1.rs:102:9
171   |
172LL |         ::bar::A::bar();
173   |         ^^^^^^^^^^^^^
174
175error[E0624]: method `bar` is private
176  --> $DIR/privacy1.rs:105:9
177   |
178LL |         ::bar::baz::A::bar();
179   |         ^^^^^^^^^^^^^^^^^^
180
181error[E0624]: method `bar2` is private
182  --> $DIR/privacy1.rs:108:23
183   |
184LL |         ::bar::baz::A.bar2();
185   |                       ^^^^
186
187error: aborting due to 18 previous errors
188
189Some errors have detailed explanations: E0603, E0624.
190For more information about an error, try `rustc --explain E0603`.