]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error: type `for<'r> fn(&'r priv_trait::Pub) {<priv_trait::Pub as PrivTr>::method}` is private |
0731742a | 2 | --> $DIR/associated-item-privacy-trait.rs:17:21 |
b7449926 XL |
3 | | |
4 | LL | let value = <Pub as PrivTr>::method; | |
ba9703b0 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^ private type |
b7449926 XL |
6 | ... |
7 | LL | priv_trait::mac!(); | |
8 | | ------------------- in this macro invocation | |
74b04a01 XL |
9 | | |
10 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 | 11 | |
1b1a35ee | 12 | error: type `for<'r> fn(&'r priv_trait::Pub) {<priv_trait::Pub as PrivTr>::method}` is private |
0731742a | 13 | --> $DIR/associated-item-privacy-trait.rs:19:9 |
b7449926 XL |
14 | | |
15 | LL | value; | |
ba9703b0 | 16 | | ^^^^^ private type |
b7449926 XL |
17 | ... |
18 | LL | priv_trait::mac!(); | |
19 | | ------------------- in this macro invocation | |
74b04a01 XL |
20 | | |
21 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 | 22 | |
1b1a35ee | 23 | error: type `for<'r> fn(&'r Self) {<Self as PrivTr>::method}` is private |
0731742a | 24 | --> $DIR/associated-item-privacy-trait.rs:21:13 |
b7449926 XL |
25 | | |
26 | LL | Pub.method(); | |
ba9703b0 | 27 | | ^^^^^^ private type |
b7449926 XL |
28 | ... |
29 | LL | priv_trait::mac!(); | |
30 | | ------------------- in this macro invocation | |
74b04a01 XL |
31 | | |
32 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 | 33 | |
ba9703b0 | 34 | error: associated constant `<Pub as PrivTr>::CONST` is private |
0731742a | 35 | --> $DIR/associated-item-privacy-trait.rs:23:9 |
b7449926 XL |
36 | | |
37 | LL | <Pub as PrivTr>::CONST; | |
ba9703b0 | 38 | | ^^^^^^^^^^^^^^^^^^^^^^ private associated constant |
b7449926 XL |
39 | ... |
40 | LL | priv_trait::mac!(); | |
41 | | ------------------- in this macro invocation | |
b7449926 | 42 | | |
74b04a01 | 43 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) |
b7449926 | 44 | |
ba9703b0 | 45 | error: associated type `<Pub as PrivTr>::AssocTy` is private |
0731742a | 46 | --> $DIR/associated-item-privacy-trait.rs:25:16 |
b7449926 XL |
47 | | |
48 | LL | let _: <Pub as PrivTr>::AssocTy; | |
ba9703b0 | 49 | | ^^^^^^^^^^^^^^^^^^^^^^^^ private associated type |
b7449926 XL |
50 | ... |
51 | LL | priv_trait::mac!(); | |
52 | | ------------------- in this macro invocation | |
74b04a01 XL |
53 | | |
54 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 | 55 | |
1b1a35ee | 56 | error: trait `PrivTr` is private |
74b04a01 | 57 | --> $DIR/associated-item-privacy-trait.rs:27:34 |
b7449926 XL |
58 | | |
59 | LL | pub type InSignatureTy = <Pub as PrivTr>::AssocTy; | |
ba9703b0 | 60 | | ^^^^^^^^^^^^^^^^^^^^^^^^ private trait |
b7449926 XL |
61 | ... |
62 | LL | priv_trait::mac!(); | |
63 | | ------------------- in this macro invocation | |
74b04a01 XL |
64 | | |
65 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 | 66 | |
1b1a35ee | 67 | error: trait `PrivTr` is private |
74b04a01 | 68 | --> $DIR/associated-item-privacy-trait.rs:29:34 |
b7449926 XL |
69 | | |
70 | LL | pub trait InSignatureTr: PrivTr {} | |
ba9703b0 | 71 | | ^^^^^^ private trait |
b7449926 XL |
72 | ... |
73 | LL | priv_trait::mac!(); | |
74 | | ------------------- in this macro invocation | |
74b04a01 XL |
75 | | |
76 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 | 77 | |
1b1a35ee | 78 | error: trait `PrivTr` is private |
74b04a01 | 79 | --> $DIR/associated-item-privacy-trait.rs:31:14 |
b7449926 XL |
80 | | |
81 | LL | impl PrivTr for u8 {} | |
ba9703b0 | 82 | | ^^^^^^ private trait |
b7449926 XL |
83 | ... |
84 | LL | priv_trait::mac!(); | |
85 | | ------------------- in this macro invocation | |
74b04a01 XL |
86 | | |
87 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
88 | |
89 | error: type `priv_signature::Priv` is private | |
74b04a01 | 90 | --> $DIR/associated-item-privacy-trait.rs:48:21 |
b7449926 XL |
91 | | |
92 | LL | let value = <Pub as PubTr>::method; | |
ba9703b0 | 93 | | ^^^^^^^^^^^^^^^^^^^^^^ private type |
b7449926 XL |
94 | ... |
95 | LL | priv_signature::mac!(); | |
96 | | ----------------------- in this macro invocation | |
74b04a01 XL |
97 | | |
98 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
99 | |
100 | error: type `priv_signature::Priv` is private | |
74b04a01 | 101 | --> $DIR/associated-item-privacy-trait.rs:50:9 |
b7449926 XL |
102 | | |
103 | LL | value; | |
ba9703b0 | 104 | | ^^^^^ private type |
b7449926 XL |
105 | ... |
106 | LL | priv_signature::mac!(); | |
107 | | ----------------------- in this macro invocation | |
74b04a01 XL |
108 | | |
109 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
110 | |
111 | error: type `priv_signature::Priv` is private | |
74b04a01 | 112 | --> $DIR/associated-item-privacy-trait.rs:52:13 |
b7449926 XL |
113 | | |
114 | LL | Pub.method(loop {}); | |
ba9703b0 | 115 | | ^^^^^^ private type |
b7449926 XL |
116 | ... |
117 | LL | priv_signature::mac!(); | |
118 | | ----------------------- in this macro invocation | |
74b04a01 XL |
119 | | |
120 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
121 | |
122 | error: type `priv_substs::Priv` is private | |
74b04a01 | 123 | --> $DIR/associated-item-privacy-trait.rs:69:21 |
b7449926 XL |
124 | | |
125 | LL | let value = <Pub as PubTr>::method::<Priv>; | |
ba9703b0 | 126 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private type |
b7449926 XL |
127 | ... |
128 | LL | priv_substs::mac!(); | |
129 | | -------------------- in this macro invocation | |
74b04a01 XL |
130 | | |
131 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
132 | |
133 | error: type `priv_substs::Priv` is private | |
74b04a01 | 134 | --> $DIR/associated-item-privacy-trait.rs:71:9 |
b7449926 XL |
135 | | |
136 | LL | value; | |
ba9703b0 | 137 | | ^^^^^ private type |
b7449926 XL |
138 | ... |
139 | LL | priv_substs::mac!(); | |
140 | | -------------------- in this macro invocation | |
74b04a01 XL |
141 | | |
142 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
143 | |
144 | error: type `priv_substs::Priv` is private | |
74b04a01 | 145 | --> $DIR/associated-item-privacy-trait.rs:73:9 |
b7449926 XL |
146 | | |
147 | LL | Pub.method::<Priv>(); | |
ba9703b0 | 148 | | ^^^^^^^^^^^^^^^^^^^^ private type |
b7449926 XL |
149 | ... |
150 | LL | priv_substs::mac!(); | |
151 | | -------------------- in this macro invocation | |
74b04a01 XL |
152 | | |
153 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
154 | |
155 | error: type `priv_parent_substs::Priv` is private | |
74b04a01 | 156 | --> $DIR/associated-item-privacy-trait.rs:93:21 |
b7449926 XL |
157 | | |
158 | LL | let value = <Pub as PubTr>::method; | |
ba9703b0 | 159 | | ^^^^^^^^^^^^^^^^^^^^^^ private type |
b7449926 XL |
160 | ... |
161 | LL | priv_parent_substs::mac!(); | |
162 | | --------------------------- in this macro invocation | |
74b04a01 XL |
163 | | |
164 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
165 | |
166 | error: type `priv_parent_substs::Priv` is private | |
74b04a01 | 167 | --> $DIR/associated-item-privacy-trait.rs:95:9 |
b7449926 XL |
168 | | |
169 | LL | value; | |
ba9703b0 | 170 | | ^^^^^ private type |
b7449926 XL |
171 | ... |
172 | LL | priv_parent_substs::mac!(); | |
173 | | --------------------------- in this macro invocation | |
74b04a01 XL |
174 | | |
175 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
176 | |
177 | error: type `priv_parent_substs::Priv` is private | |
74b04a01 | 178 | --> $DIR/associated-item-privacy-trait.rs:97:21 |
b7449926 XL |
179 | | |
180 | LL | let value = <Pub as PubTr<_>>::method; | |
ba9703b0 | 181 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ private type |
b7449926 XL |
182 | ... |
183 | LL | priv_parent_substs::mac!(); | |
184 | | --------------------------- in this macro invocation | |
74b04a01 XL |
185 | | |
186 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
187 | |
188 | error: type `priv_parent_substs::Priv` is private | |
74b04a01 | 189 | --> $DIR/associated-item-privacy-trait.rs:99:9 |
b7449926 XL |
190 | | |
191 | LL | value; | |
ba9703b0 | 192 | | ^^^^^ private type |
b7449926 XL |
193 | ... |
194 | LL | priv_parent_substs::mac!(); | |
195 | | --------------------------- in this macro invocation | |
74b04a01 XL |
196 | | |
197 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
198 | |
199 | error: type `priv_parent_substs::Priv` is private | |
74b04a01 | 200 | --> $DIR/associated-item-privacy-trait.rs:101:9 |
b7449926 XL |
201 | | |
202 | LL | Pub.method(); | |
ba9703b0 | 203 | | ^^^^^^^^^^^^ private type |
b7449926 XL |
204 | ... |
205 | LL | priv_parent_substs::mac!(); | |
206 | | --------------------------- in this macro invocation | |
74b04a01 XL |
207 | | |
208 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
209 | |
210 | error: type `priv_parent_substs::Priv` is private | |
74b04a01 | 211 | --> $DIR/associated-item-privacy-trait.rs:104:21 |
b7449926 XL |
212 | | |
213 | LL | let value = <Priv as PubTr<_>>::method; | |
ba9703b0 | 214 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ private type |
b7449926 XL |
215 | ... |
216 | LL | priv_parent_substs::mac!(); | |
217 | | --------------------------- in this macro invocation | |
74b04a01 XL |
218 | | |
219 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
220 | |
221 | error: type `priv_parent_substs::Priv` is private | |
74b04a01 | 222 | --> $DIR/associated-item-privacy-trait.rs:106:9 |
b7449926 XL |
223 | | |
224 | LL | value; | |
ba9703b0 | 225 | | ^^^^^ private type |
b7449926 XL |
226 | ... |
227 | LL | priv_parent_substs::mac!(); | |
228 | | --------------------------- in this macro invocation | |
74b04a01 XL |
229 | | |
230 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
231 | |
232 | error: type `priv_parent_substs::Priv` is private | |
74b04a01 | 233 | --> $DIR/associated-item-privacy-trait.rs:108:9 |
b7449926 XL |
234 | | |
235 | LL | Priv.method(); | |
ba9703b0 | 236 | | ^^^^^^^^^^^^^ private type |
b7449926 XL |
237 | ... |
238 | LL | priv_parent_substs::mac!(); | |
239 | | --------------------------- in this macro invocation | |
74b04a01 XL |
240 | | |
241 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
242 | |
243 | error: type `priv_parent_substs::Priv` is private | |
74b04a01 | 244 | --> $DIR/associated-item-privacy-trait.rs:111:9 |
b7449926 XL |
245 | | |
246 | LL | <Pub as PubTr>::CONST; | |
ba9703b0 | 247 | | ^^^^^^^^^^^^^^^^^^^^^ private type |
b7449926 XL |
248 | ... |
249 | LL | priv_parent_substs::mac!(); | |
250 | | --------------------------- in this macro invocation | |
74b04a01 XL |
251 | | |
252 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
253 | |
254 | error: type `priv_parent_substs::Priv` is private | |
74b04a01 | 255 | --> $DIR/associated-item-privacy-trait.rs:113:9 |
b7449926 XL |
256 | | |
257 | LL | <Pub as PubTr<_>>::CONST; | |
ba9703b0 | 258 | | ^^^^^^^^^^^^^^^^^^^^^^^^ private type |
b7449926 XL |
259 | ... |
260 | LL | priv_parent_substs::mac!(); | |
261 | | --------------------------- in this macro invocation | |
74b04a01 XL |
262 | | |
263 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
264 | |
265 | error: type `priv_parent_substs::Priv` is private | |
74b04a01 | 266 | --> $DIR/associated-item-privacy-trait.rs:115:9 |
b7449926 XL |
267 | | |
268 | LL | <Priv as PubTr<_>>::CONST; | |
ba9703b0 | 269 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ private type |
b7449926 XL |
270 | ... |
271 | LL | priv_parent_substs::mac!(); | |
272 | | --------------------------- in this macro invocation | |
b7449926 | 273 | | |
74b04a01 | 274 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) |
b7449926 XL |
275 | |
276 | error: type `priv_parent_substs::Priv` is private | |
74b04a01 | 277 | --> $DIR/associated-item-privacy-trait.rs:119:30 |
b7449926 XL |
278 | | |
279 | LL | let _: <Pub as PubTr<_>>::AssocTy; | |
ba9703b0 | 280 | | ^ private type |
b7449926 XL |
281 | ... |
282 | LL | priv_parent_substs::mac!(); | |
283 | | --------------------------- in this macro invocation | |
b7449926 | 284 | | |
74b04a01 | 285 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) |
b7449926 XL |
286 | |
287 | error: type `priv_parent_substs::Priv` is private | |
74b04a01 | 288 | --> $DIR/associated-item-privacy-trait.rs:121:17 |
b7449926 XL |
289 | | |
290 | LL | let _: <Priv as PubTr<_>>::AssocTy; | |
ba9703b0 | 291 | | ^^^^ private type |
b7449926 XL |
292 | ... |
293 | LL | priv_parent_substs::mac!(); | |
294 | | --------------------------- in this macro invocation | |
b7449926 | 295 | | |
74b04a01 | 296 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) |
b7449926 XL |
297 | |
298 | error: type `priv_parent_substs::Priv` is private | |
74b04a01 | 299 | --> $DIR/associated-item-privacy-trait.rs:124:35 |
b7449926 XL |
300 | | |
301 | LL | pub type InSignatureTy1 = <Pub as PubTr>::AssocTy; | |
ba9703b0 | 302 | | ^^^^^^^^^^^^^^^^^^^^^^^ private type |
b7449926 XL |
303 | ... |
304 | LL | priv_parent_substs::mac!(); | |
305 | | --------------------------- in this macro invocation | |
74b04a01 XL |
306 | | |
307 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
308 | |
309 | error: type `priv_parent_substs::Priv` is private | |
74b04a01 | 310 | --> $DIR/associated-item-privacy-trait.rs:126:35 |
b7449926 XL |
311 | | |
312 | LL | pub type InSignatureTy2 = <Priv as PubTr<Pub>>::AssocTy; | |
ba9703b0 | 313 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private type |
b7449926 XL |
314 | ... |
315 | LL | priv_parent_substs::mac!(); | |
316 | | --------------------------- in this macro invocation | |
74b04a01 XL |
317 | | |
318 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 XL |
319 | |
320 | error: type `priv_parent_substs::Priv` is private | |
74b04a01 | 321 | --> $DIR/associated-item-privacy-trait.rs:128:14 |
b7449926 XL |
322 | | |
323 | LL | impl PubTr for u8 {} | |
ba9703b0 | 324 | | ^^^^^ private type |
b7449926 XL |
325 | ... |
326 | LL | priv_parent_substs::mac!(); | |
327 | | --------------------------- in this macro invocation | |
74b04a01 XL |
328 | | |
329 | = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) | |
b7449926 | 330 | |
74b04a01 | 331 | error: aborting due to 30 previous errors |
b7449926 | 332 |