Debian Codegraph @

debian/rust-vendor/pin-project-lite/tests/ui/pin_project/invalid-bounds.stderr

raw
1 error: no rules expected `:`
2 --> tests/ui/pin_project/invalid-bounds.rs:6:33
3 |
4 6 | struct Generics1<T: 'static : Sized> { //~ ERROR no rules expected the token `:`
5 | ^ no rules expected this token in macro call
6 |
7 note: while trying to match `>`
8 --> src/lib.rs
9 |
10 | >)?
11 | ^
12
13 error: no rules expected `:`
14 --> tests/ui/pin_project/invalid-bounds.rs:12:33
15 |
16 12 | struct Generics2<T: 'static : ?Sized> { //~ ERROR no rules expected the token `:`
17 | ^ no rules expected this token in macro call
18 |
19 note: while trying to match `>`
20 --> src/lib.rs
21 |
22 | >)?
23 | ^
24
25 error: expected one of `+`, `,`, `=`, or `>`, found `:`
26 --> tests/ui/pin_project/invalid-bounds.rs:17:1
27 |
28 17 | / pin_project! {
29 18 | | struct Generics3<T: Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
30 19 | | field: T,
31 20 | | }
32 21 | | }
33 | | ^
34 | | |
35 | | expected one of `+`, `,`, `=`, or `>`
36 | |_unexpected token
37 | in this macro invocation
38 |
39 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
40 help: you might have meant to end the type parameters here
41 --> $DIR/src/lib.rs
42 |
43 | $(: $generics_bound>)?
44 | +
45
46 error: expected one of `+`, `,`, `=`, or `>`, found `:`
47 --> tests/ui/pin_project/invalid-bounds.rs:17:1
48 |
49 17 | / pin_project! {
50 18 | | struct Generics3<T: Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
51 19 | | field: T,
52 20 | | }
53 21 | | }
54 | | ^
55 | | |
56 | |_expected one of `+`, `,`, `=`, or `>`
57 | unexpected token
58 |
59 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
60 help: you might have meant to end the type parameters here
61 --> $DIR/src/lib.rs
62 |
63 | $(: $generics_bound>)?
64 | +
65
66 error: expected one of `+`, `,`, `=`, or `>`, found `:`
67 --> tests/ui/pin_project/invalid-bounds.rs:17:1
68 |
69 17 | / pin_project! {
70 18 | | struct Generics3<T: Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
71 19 | | field: T,
72 20 | | }
73 21 | | }
74 | | ^
75 | | |
76 | | expected one of `+`, `,`, `=`, or `>`
77 | |_unexpected token
78 | in this macro invocation
79 |
80 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
81 help: you might have meant to end the type parameters here
82 --> $DIR/src/lib.rs
83 |
84 | $(: $generics_bound>)?
85 | +
86
87 error: expected one of `+`, `,`, `=`, or `>`, found `:`
88 --> tests/ui/pin_project/invalid-bounds.rs:17:1
89 |
90 17 | / pin_project! {
91 18 | | struct Generics3<T: Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
92 19 | | field: T,
93 20 | | }
94 21 | | }
95 | | ^
96 | | |
97 | | expected one of `+`, `,`, `=`, or `>`
98 | |_unexpected token
99 | in this macro invocation
100 |
101 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
102 help: you might have meant to end the type parameters here
103 --> $DIR/src/lib.rs
104 |
105 | $(: $generics_bound>)?
106 | +
107
108 error: expected one of `+`, `,`, `=`, or `>`, found `:`
109 --> tests/ui/pin_project/invalid-bounds.rs:23:1
110 |
111 23 | / pin_project! {
112 24 | | struct Generics4<T: ?Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
113 25 | | field: T,
114 26 | | }
115 27 | | }
116 | | ^
117 | | |
118 | | expected one of `+`, `,`, `=`, or `>`
119 | |_unexpected token
120 | in this macro invocation
121 |
122 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
123 help: you might have meant to end the type parameters here
124 --> $DIR/src/lib.rs
125 |
126 | $(: ?$generics_unsized_bound>)?
127 | +
128
129 error: expected one of `+`, `,`, `=`, or `>`, found `:`
130 --> tests/ui/pin_project/invalid-bounds.rs:23:1
131 |
132 23 | / pin_project! {
133 24 | | struct Generics4<T: ?Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
134 25 | | field: T,
135 26 | | }
136 27 | | }
137 | | ^
138 | | |
139 | |_expected one of `+`, `,`, `=`, or `>`
140 | unexpected token
141 |
142 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
143 help: you might have meant to end the type parameters here
144 --> $DIR/src/lib.rs
145 |
146 | $(: ?$generics_unsized_bound>)?
147 | +
148
149 error: expected one of `+`, `,`, `=`, or `>`, found `:`
150 --> tests/ui/pin_project/invalid-bounds.rs:23:1
151 |
152 23 | / pin_project! {
153 24 | | struct Generics4<T: ?Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
154 25 | | field: T,
155 26 | | }
156 27 | | }
157 | | ^
158 | | |
159 | | expected one of `+`, `,`, `=`, or `>`
160 | |_unexpected token
161 | in this macro invocation
162 |
163 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
164 help: you might have meant to end the type parameters here
165 --> $DIR/src/lib.rs
166 |
167 | $(: ?$generics_unsized_bound>)?
168 | +
169
170 error: expected one of `+`, `,`, `=`, or `>`, found `:`
171 --> tests/ui/pin_project/invalid-bounds.rs:23:1
172 |
173 23 | / pin_project! {
174 24 | | struct Generics4<T: ?Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
175 25 | | field: T,
176 26 | | }
177 27 | | }
178 | | ^
179 | | |
180 | | expected one of `+`, `,`, `=`, or `>`
181 | |_unexpected token
182 | in this macro invocation
183 |
184 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
185 help: you might have meant to end the type parameters here
186 --> $DIR/src/lib.rs
187 |
188 | $(: ?$generics_unsized_bound>)?
189 | +
190
191 error: expected one of `+`, `,`, `=`, or `>`, found `:`
192 --> tests/ui/pin_project/invalid-bounds.rs:29:1
193 |
194 29 | / pin_project! {
195 30 | | struct Generics5<T: Sized : ?Sized> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
196 31 | | field: T,
197 32 | | }
198 33 | | }
199 | | ^
200 | | |
201 | | expected one of `+`, `,`, `=`, or `>`
202 | |_unexpected token
203 | in this macro invocation
204 |
205 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
206 help: you might have meant to end the type parameters here
207 --> $DIR/src/lib.rs
208 |
209 | $(: $generics_bound>)?
210 | +
211
212 error: expected one of `+`, `,`, `=`, or `>`, found `:`
213 --> tests/ui/pin_project/invalid-bounds.rs:29:1
214 |
215 29 | / pin_project! {
216 30 | | struct Generics5<T: Sized : ?Sized> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
217 31 | | field: T,
218 32 | | }
219 33 | | }
220 | | ^
221 | | |
222 | |_expected one of `+`, `,`, `=`, or `>`
223 | unexpected token
224 |
225 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
226 help: you might have meant to end the type parameters here
227 --> $DIR/src/lib.rs
228 |
229 | $(: $generics_bound>)?
230 | +
231
232 error: expected one of `+`, `,`, `=`, or `>`, found `:`
233 --> tests/ui/pin_project/invalid-bounds.rs:29:1
234 |
235 29 | / pin_project! {
236 30 | | struct Generics5<T: Sized : ?Sized> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
237 31 | | field: T,
238 32 | | }
239 33 | | }
240 | | ^
241 | | |
242 | | expected one of `+`, `,`, `=`, or `>`
243 | |_unexpected token
244 | in this macro invocation
245 |
246 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
247 help: you might have meant to end the type parameters here
248 --> $DIR/src/lib.rs
249 |
250 | $(: $generics_bound>)?
251 | +
252
253 error: expected one of `+`, `,`, `=`, or `>`, found `:`
254 --> tests/ui/pin_project/invalid-bounds.rs:29:1
255 |
256 29 | / pin_project! {
257 30 | | struct Generics5<T: Sized : ?Sized> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
258 31 | | field: T,
259 32 | | }
260 33 | | }
261 | | ^
262 | | |
263 | | expected one of `+`, `,`, `=`, or `>`
264 | |_unexpected token
265 | in this macro invocation
266 |
267 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
268 help: you might have meant to end the type parameters here
269 --> $DIR/src/lib.rs
270 |
271 | $(: $generics_bound>)?
272 | +
273
274 error: no rules expected `Sized`
275 --> tests/ui/pin_project/invalid-bounds.rs:36:34
276 |
277 36 | struct Generics6<T: ?Sized : Sized> { //~ ERROR no rules expected the token `Sized`
278 | ^^^^^ no rules expected this token in macro call
279 |
280 note: while trying to match meta-variable `$generics_lifetime_bound:lifetime`
281 --> src/lib.rs
282 |
283 | $(: $generics_lifetime_bound:lifetime)?
284 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
285
286 error: no rules expected `:`
287 --> tests/ui/pin_project/invalid-bounds.rs:44:20
288 |
289 44 | T: 'static : Sized //~ ERROR no rules expected the token `:`
290 | ^ no rules expected this token in macro call
291 |
292 note: while trying to match `{`
293 --> src/lib.rs
294 |
295 | {
296 | ^
297
298 error: no rules expected `:`
299 --> tests/ui/pin_project/invalid-bounds.rs:53:20
300 |
301 53 | T: 'static : ?Sized //~ ERROR no rules expected the token `:`
302 | ^ no rules expected this token in macro call
303 |
304 note: while trying to match `{`
305 --> src/lib.rs
306 |
307 | {
308 | ^
309
310 error: expected `{` after struct name, found `:`
311 --> tests/ui/pin_project/invalid-bounds.rs:59:1
312 |
313 59 | / pin_project! {
314 60 | | struct WhereClause3<T>
315 61 | | where
316 62 | | T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
317 ... |
318 66 | | }
319 | | ^
320 | | |
321 | |_expected `{` after struct name
322 | in this macro invocation
323 |
324 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
325
326 error: expected one of `+`, `,`, or `{`, found `:`
327 --> tests/ui/pin_project/invalid-bounds.rs:59:1
328 |
329 59 | / pin_project! {
330 60 | | struct WhereClause3<T>
331 61 | | where
332 62 | | T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
333 ... |
334 66 | | }
335 | | ^
336 | | |
337 | |_expected one of `+`, `,`, or `{`
338 | unexpected token
339 |
340 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
341
342 error: expected `{` after struct name, found `:`
343 --> tests/ui/pin_project/invalid-bounds.rs:59:1
344 |
345 59 | / pin_project! {
346 60 | | struct WhereClause3<T>
347 61 | | where
348 62 | | T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
349 ... |
350 66 | | }
351 | | ^
352 | | |
353 | |_expected `{` after struct name
354 | in this macro invocation
355 |
356 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
357
358 error: expected `{` after struct name, found `:`
359 --> tests/ui/pin_project/invalid-bounds.rs:59:1
360 |
361 59 | / pin_project! {
362 60 | | struct WhereClause3<T>
363 61 | | where
364 62 | | T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
365 ... |
366 66 | | }
367 | | ^
368 | | |
369 | |_expected `{` after struct name
370 | in this macro invocation
371 |
372 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
373
374 error: expected `{` after struct name, found `:`
375 --> tests/ui/pin_project/invalid-bounds.rs:68:1
376 |
377 68 | / pin_project! {
378 69 | | struct WhereClause4<T>
379 70 | | where
380 71 | | T: ?Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
381 ... |
382 75 | | }
383 | | ^
384 | | |
385 | |_expected `{` after struct name
386 | in this macro invocation
387 |
388 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
389
390 error: expected one of `+`, `,`, or `{`, found `:`
391 --> tests/ui/pin_project/invalid-bounds.rs:68:1
392 |
393 68 | / pin_project! {
394 69 | | struct WhereClause4<T>
395 70 | | where
396 71 | | T: ?Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
397 ... |
398 75 | | }
399 | | ^
400 | | |
401 | |_expected one of `+`, `,`, or `{`
402 | unexpected token
403 |
404 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
405
406 error: expected `{` after struct name, found `:`
407 --> tests/ui/pin_project/invalid-bounds.rs:68:1
408 |
409 68 | / pin_project! {
410 69 | | struct WhereClause4<T>
411 70 | | where
412 71 | | T: ?Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
413 ... |
414 75 | | }
415 | | ^
416 | | |
417 | |_expected `{` after struct name
418 | in this macro invocation
419 |
420 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
421
422 error: expected `{` after struct name, found `:`
423 --> tests/ui/pin_project/invalid-bounds.rs:68:1
424 |
425 68 | / pin_project! {
426 69 | | struct WhereClause4<T>
427 70 | | where
428 71 | | T: ?Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
429 ... |
430 75 | | }
431 | | ^
432 | | |
433 | |_expected `{` after struct name
434 | in this macro invocation
435 |
436 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
437
438 error: expected `{` after struct name, found `:`
439 --> tests/ui/pin_project/invalid-bounds.rs:77:1
440 |
441 77 | / pin_project! {
442 78 | | struct WhereClause5<T>
443 79 | | where
444 80 | | T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
445 ... |
446 84 | | }
447 | | ^
448 | | |
449 | |_expected `{` after struct name
450 | in this macro invocation
451 |
452 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
453
454 error: expected one of `+`, `,`, or `{`, found `:`
455 --> tests/ui/pin_project/invalid-bounds.rs:77:1
456 |
457 77 | / pin_project! {
458 78 | | struct WhereClause5<T>
459 79 | | where
460 80 | | T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
461 ... |
462 84 | | }
463 | | ^
464 | | |
465 | |_expected one of `+`, `,`, or `{`
466 | unexpected token
467 |
468 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
469
470 error: expected `{` after struct name, found `:`
471 --> tests/ui/pin_project/invalid-bounds.rs:77:1
472 |
473 77 | / pin_project! {
474 78 | | struct WhereClause5<T>
475 79 | | where
476 80 | | T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
477 ... |
478 84 | | }
479 | | ^
480 | | |
481 | |_expected `{` after struct name
482 | in this macro invocation
483 |
484 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
485
486 error: expected `{` after struct name, found `:`
487 --> tests/ui/pin_project/invalid-bounds.rs:77:1
488 |
489 77 | / pin_project! {
490 78 | | struct WhereClause5<T>
491 79 | | where
492 80 | | T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
493 ... |
494 84 | | }
495 | | ^
496 | | |
497 | |_expected `{` after struct name
498 | in this macro invocation
499 |
500 = note: this error originates in the macro `$crate::__pin_project_parse_generics` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
501
502 error: no rules expected `Sized`
503 --> tests/ui/pin_project/invalid-bounds.rs:89:21
504 |
505 89 | T: ?Sized : Sized //~ ERROR no rules expected the token `Sized`
506 | ^^^^^ no rules expected this token in macro call
507 |
508 note: while trying to match meta-variable `$where_clause_lifetime_bound:lifetime`
509 --> src/lib.rs
510 |
511 | $(: $where_clause_lifetime_bound:lifetime)?
512 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^