Debian Codegraph @

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

raw
1 error: no rules expected the token `:`
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 the token `:`
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 the token `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 the token `:`
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 the token `:`
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 65 | | }
322 66 | | }
323 | | ^
324 | | |
325 | |_expected `{` after struct name
326 | in this macro invocation
327 |
328 = 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)
329
330 error: expected one of `+`, `,`, or `{`, found `:`
331 --> tests/ui/pin_project/invalid-bounds.rs:59:1
332 |
333 59 | / pin_project! {
334 60 | | struct WhereClause3<T>
335 61 | | where
336 62 | | T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
337 ... |
338 65 | | }
339 66 | | }
340 | | ^
341 | | |
342 | |_expected one of `+`, `,`, or `{`
343 | unexpected token
344 |
345 = note: type ascription syntax has been removed, see issue #101728 <https://github.com/rust-lang/rust/issues/101728>
346 = 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)
347
348 error: expected `{` after struct name, found `:`
349 --> tests/ui/pin_project/invalid-bounds.rs:59:1
350 |
351 59 | / pin_project! {
352 60 | | struct WhereClause3<T>
353 61 | | where
354 62 | | T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
355 ... |
356 65 | | }
357 66 | | }
358 | | ^
359 | | |
360 | |_expected `{` after struct name
361 | in this macro invocation
362 |
363 = 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)
364
365 error: expected `{` after struct name, found `:`
366 --> tests/ui/pin_project/invalid-bounds.rs:59:1
367 |
368 59 | / pin_project! {
369 60 | | struct WhereClause3<T>
370 61 | | where
371 62 | | T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
372 ... |
373 65 | | }
374 66 | | }
375 | | ^
376 | | |
377 | |_expected `{` after struct name
378 | in this macro invocation
379 |
380 = 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)
381
382 error: expected `{` after struct name, found `:`
383 --> tests/ui/pin_project/invalid-bounds.rs:68:1
384 |
385 68 | / pin_project! {
386 69 | | struct WhereClause4<T>
387 70 | | where
388 71 | | T: ?Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
389 ... |
390 74 | | }
391 75 | | }
392 | | ^
393 | | |
394 | |_expected `{` after struct name
395 | in this macro invocation
396 |
397 = 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)
398
399 error: expected one of `+`, `,`, or `{`, found `:`
400 --> tests/ui/pin_project/invalid-bounds.rs:68:1
401 |
402 68 | / pin_project! {
403 69 | | struct WhereClause4<T>
404 70 | | where
405 71 | | T: ?Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
406 ... |
407 74 | | }
408 75 | | }
409 | | ^
410 | | |
411 | |_expected one of `+`, `,`, or `{`
412 | unexpected token
413 |
414 = note: type ascription syntax has been removed, see issue #101728 <https://github.com/rust-lang/rust/issues/101728>
415 = 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)
416
417 error: expected `{` after struct name, found `:`
418 --> tests/ui/pin_project/invalid-bounds.rs:68:1
419 |
420 68 | / pin_project! {
421 69 | | struct WhereClause4<T>
422 70 | | where
423 71 | | T: ?Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
424 ... |
425 74 | | }
426 75 | | }
427 | | ^
428 | | |
429 | |_expected `{` after struct name
430 | in this macro invocation
431 |
432 = 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)
433
434 error: expected `{` after struct name, found `:`
435 --> tests/ui/pin_project/invalid-bounds.rs:68:1
436 |
437 68 | / pin_project! {
438 69 | | struct WhereClause4<T>
439 70 | | where
440 71 | | T: ?Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
441 ... |
442 74 | | }
443 75 | | }
444 | | ^
445 | | |
446 | |_expected `{` after struct name
447 | in this macro invocation
448 |
449 = 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)
450
451 error: expected `{` after struct name, found `:`
452 --> tests/ui/pin_project/invalid-bounds.rs:77:1
453 |
454 77 | / pin_project! {
455 78 | | struct WhereClause5<T>
456 79 | | where
457 80 | | T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
458 ... |
459 83 | | }
460 84 | | }
461 | | ^
462 | | |
463 | |_expected `{` after struct name
464 | in this macro invocation
465 |
466 = 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)
467
468 error: expected one of `+`, `,`, or `{`, found `:`
469 --> tests/ui/pin_project/invalid-bounds.rs:77:1
470 |
471 77 | / pin_project! {
472 78 | | struct WhereClause5<T>
473 79 | | where
474 80 | | T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
475 ... |
476 83 | | }
477 84 | | }
478 | | ^
479 | | |
480 | |_expected one of `+`, `,`, or `{`
481 | unexpected token
482 |
483 = note: type ascription syntax has been removed, see issue #101728 <https://github.com/rust-lang/rust/issues/101728>
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 83 | | }
495 84 | | }
496 | | ^
497 | | |
498 | |_expected `{` after struct name
499 | in this macro invocation
500 |
501 = 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)
502
503 error: expected `{` after struct name, found `:`
504 --> tests/ui/pin_project/invalid-bounds.rs:77:1
505 |
506 77 | / pin_project! {
507 78 | | struct WhereClause5<T>
508 79 | | where
509 80 | | T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
510 ... |
511 83 | | }
512 84 | | }
513 | | ^
514 | | |
515 | |_expected `{` after struct name
516 | in this macro invocation
517 |
518 = 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)
519
520 error: no rules expected the token `Sized`
521 --> tests/ui/pin_project/invalid-bounds.rs:89:21
522 |
523 89 | T: ?Sized : Sized //~ ERROR no rules expected the token `Sized`
524 | ^^^^^ no rules expected this token in macro call
525 |
526 note: while trying to match meta-variable `$where_clause_lifetime_bound:lifetime`
527 --> src/lib.rs
528 |
529 | $(: $where_clause_lifetime_bound:lifetime)?
530 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^