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