Debian Codegraph @

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