1error: no rules expected the token `:`
2 --> tests/ui/pin_project/invalid-bounds.rs:4:33
3  |
44 |     struct Generics1<T: 'static : Sized> { //~ ERROR no rules expected the token `:`
5  |                                 ^ no rules expected this token in macro call
6  |
7note: while trying to match `>`
8 --> src/lib.rs
9  |
10  |         >)?
11  |         ^
12
13error: no rules expected the token `:`
14  --> tests/ui/pin_project/invalid-bounds.rs:10:33
15   |
1610 |     struct Generics2<T: 'static : ?Sized> { //~ ERROR no rules expected the token `:`
17   |                                 ^ no rules expected this token in macro call
18   |
19note: while trying to match `>`
20  --> src/lib.rs
21   |
22   |         >)?
23   |         ^
24
25error: expected one of `+`, `,`, `=`, or `>`, found `:`
26  --> tests/ui/pin_project/invalid-bounds.rs:15:1
27   |
2815 | / pin_project! {
2916 | |     struct Generics3<T: Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
3017 | |         field: T,
3118 | |     }
3219 | | }
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
41error: expected one of `+`, `,`, `=`, or `>`, found `:`
42  --> tests/ui/pin_project/invalid-bounds.rs:15:1
43   |
4415 | / pin_project! {
4516 | |     struct Generics3<T: Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
4617 | |         field: T,
4718 | |     }
4819 | | }
49   | | ^
50   | | |
51   | |_expected one of `+`, `,`, `=`, or `>`
52   |   unexpected token
53   |
54   = note: type ascription syntax has been removed, see issue #101728 <https://github.com/rust-lang/rust/issues/101728>
55   = 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)
56
57error: expected one of `+`, `,`, `=`, or `>`, found `:`
58  --> tests/ui/pin_project/invalid-bounds.rs:15:1
59   |
6015 | / pin_project! {
6116 | |     struct Generics3<T: Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
6217 | |         field: T,
6318 | |     }
6419 | | }
65   | | ^
66   | | |
67   | | expected one of `+`, `,`, `=`, or `>`
68   | |_unexpected token
69   |   in this macro invocation
70   |
71   = 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)
72
73error: expected one of `+`, `,`, `=`, or `>`, found `:`
74  --> tests/ui/pin_project/invalid-bounds.rs:15:1
75   |
7615 | / pin_project! {
7716 | |     struct Generics3<T: Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
7817 | |         field: T,
7918 | |     }
8019 | | }
81   | | ^
82   | | |
83   | | expected one of `+`, `,`, `=`, or `>`
84   | |_unexpected token
85   |   in this macro invocation
86   |
87   = 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)
88
89error: expected one of `+`, `,`, `=`, or `>`, found `:`
90  --> tests/ui/pin_project/invalid-bounds.rs:21:1
91   |
9221 | / pin_project! {
9322 | |     struct Generics4<T: ?Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
9423 | |         field: T,
9524 | |     }
9625 | | }
97   | | ^
98   | | |
99   | | expected one of `+`, `,`, `=`, or `>`
100   | |_unexpected token
101   |   in this macro invocation
102   |
103   = 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)
104
105error: expected one of `+`, `,`, `=`, or `>`, found `:`
106  --> tests/ui/pin_project/invalid-bounds.rs:21:1
107   |
10821 | / pin_project! {
10922 | |     struct Generics4<T: ?Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
11023 | |         field: T,
11124 | |     }
11225 | | }
113   | | ^
114   | | |
115   | |_expected one of `+`, `,`, `=`, or `>`
116   |   unexpected token
117   |
118   = note: type ascription syntax has been removed, see issue #101728 <https://github.com/rust-lang/rust/issues/101728>
119   = 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)
120
121error: expected one of `+`, `,`, `=`, or `>`, found `:`
122  --> tests/ui/pin_project/invalid-bounds.rs:21:1
123   |
12421 | / pin_project! {
12522 | |     struct Generics4<T: ?Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
12623 | |         field: T,
12724 | |     }
12825 | | }
129   | | ^
130   | | |
131   | | expected one of `+`, `,`, `=`, or `>`
132   | |_unexpected token
133   |   in this macro invocation
134   |
135   = 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)
136
137error: expected one of `+`, `,`, `=`, or `>`, found `:`
138  --> tests/ui/pin_project/invalid-bounds.rs:21:1
139   |
14021 | / pin_project! {
14122 | |     struct Generics4<T: ?Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
14223 | |         field: T,
14324 | |     }
14425 | | }
145   | | ^
146   | | |
147   | | expected one of `+`, `,`, `=`, or `>`
148   | |_unexpected token
149   |   in this macro invocation
150   |
151   = 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)
152
153error: expected one of `+`, `,`, `=`, or `>`, found `:`
154  --> tests/ui/pin_project/invalid-bounds.rs:27:1
155   |
15627 | / pin_project! {
15728 | |     struct Generics5<T: Sized : ?Sized> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
15829 | |         field: T,
15930 | |     }
16031 | | }
161   | | ^
162   | | |
163   | | expected one of `+`, `,`, `=`, or `>`
164   | |_unexpected token
165   |   in this macro invocation
166   |
167   = 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)
168
169error: expected one of `+`, `,`, `=`, or `>`, found `:`
170  --> tests/ui/pin_project/invalid-bounds.rs:27:1
171   |
17227 | / pin_project! {
17328 | |     struct Generics5<T: Sized : ?Sized> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
17429 | |         field: T,
17530 | |     }
17631 | | }
177   | | ^
178   | | |
179   | |_expected one of `+`, `,`, `=`, or `>`
180   |   unexpected token
181   |
182   = note: type ascription syntax has been removed, see issue #101728 <https://github.com/rust-lang/rust/issues/101728>
183   = 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)
184
185error: expected one of `+`, `,`, `=`, or `>`, found `:`
186  --> tests/ui/pin_project/invalid-bounds.rs:27:1
187   |
18827 | / pin_project! {
18928 | |     struct Generics5<T: Sized : ?Sized> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
19029 | |         field: T,
19130 | |     }
19231 | | }
193   | | ^
194   | | |
195   | | expected one of `+`, `,`, `=`, or `>`
196   | |_unexpected token
197   |   in this macro invocation
198   |
199   = 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)
200
201error: expected one of `+`, `,`, `=`, or `>`, found `:`
202  --> tests/ui/pin_project/invalid-bounds.rs:27:1
203   |
20427 | / pin_project! {
20528 | |     struct Generics5<T: Sized : ?Sized> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
20629 | |         field: T,
20730 | |     }
20831 | | }
209   | | ^
210   | | |
211   | | expected one of `+`, `,`, `=`, or `>`
212   | |_unexpected token
213   |   in this macro invocation
214   |
215   = 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)
216
217error: no rules expected the token `Sized`
218  --> tests/ui/pin_project/invalid-bounds.rs:34:34
219   |
22034 |     struct Generics6<T: ?Sized : Sized> { //~ ERROR no rules expected the token `Sized`
221   |                                  ^^^^^ no rules expected this token in macro call
222   |
223note: while trying to match meta-variable `$generics_lifetime_bound:lifetime`
224  --> src/lib.rs
225   |
226   |                 $(: $generics_lifetime_bound:lifetime)?
227   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
228
229error: no rules expected the token `:`
230  --> tests/ui/pin_project/invalid-bounds.rs:42:20
231   |
23242 |         T: 'static : Sized //~ ERROR no rules expected the token `:`
233   |                    ^ no rules expected this token in macro call
234   |
235note: while trying to match `{`
236  --> src/lib.rs
237   |
238   |         {
239   |         ^
240
241error: no rules expected the token `:`
242  --> tests/ui/pin_project/invalid-bounds.rs:51:20
243   |
24451 |         T: 'static : ?Sized //~ ERROR no rules expected the token `:`
245   |                    ^ no rules expected this token in macro call
246   |
247note: while trying to match `{`
248  --> src/lib.rs
249   |
250   |         {
251   |         ^
252
253error: expected `{` after struct name, found `:`
254  --> tests/ui/pin_project/invalid-bounds.rs:57:1
255   |
25657 | / pin_project! {
25758 | |     struct WhereClause3<T>
25859 | |     where
25960 | |         T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
260...  |
26163 | |     }
26264 | | }
263   | | ^
264   | | |
265   | |_expected `{` after struct name
266   |   in this macro invocation
267   |
268   = 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)
269
270error: expected one of `+`, `,`, or `{`, found `:`
271  --> tests/ui/pin_project/invalid-bounds.rs:57:1
272   |
27357 | / pin_project! {
27458 | |     struct WhereClause3<T>
27559 | |     where
27660 | |         T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
277...  |
27863 | |     }
27964 | | }
280   | | ^
281   | | |
282   | |_expected one of `+`, `,`, or `{`
283   |   unexpected token
284   |
285   = note: type ascription syntax has been removed, see issue #101728 <https://github.com/rust-lang/rust/issues/101728>
286   = 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)
287
288error: expected `{` after struct name, found `:`
289  --> tests/ui/pin_project/invalid-bounds.rs:57:1
290   |
29157 | / pin_project! {
29258 | |     struct WhereClause3<T>
29359 | |     where
29460 | |         T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
295...  |
29663 | |     }
29764 | | }
298   | | ^
299   | | |
300   | |_expected `{` after struct name
301   |   in this macro invocation
302   |
303   = 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)
304
305error: expected `{` after struct name, found `:`
306  --> tests/ui/pin_project/invalid-bounds.rs:57:1
307   |
30857 | / pin_project! {
30958 | |     struct WhereClause3<T>
31059 | |     where
31160 | |         T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
312...  |
31363 | |     }
31464 | | }
315   | | ^
316   | | |
317   | |_expected `{` after struct name
318   |   in this macro invocation
319   |
320   = 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)
321
322error: expected `{` after struct name, found `:`
323  --> tests/ui/pin_project/invalid-bounds.rs:66:1
324   |
32566 | / pin_project! {
32667 | |     struct WhereClause4<T>
32768 | |     where
32869 | |         T: ?Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
329...  |
33072 | |     }
33173 | | }
332   | | ^
333   | | |
334   | |_expected `{` after struct name
335   |   in this macro invocation
336   |
337   = 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)
338
339error: expected one of `+`, `,`, or `{`, found `:`
340  --> tests/ui/pin_project/invalid-bounds.rs:66:1
341   |
34266 | / pin_project! {
34367 | |     struct WhereClause4<T>
34468 | |     where
34569 | |         T: ?Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
346...  |
34772 | |     }
34873 | | }
349   | | ^
350   | | |
351   | |_expected one of `+`, `,`, or `{`
352   |   unexpected token
353   |
354   = note: type ascription syntax has been removed, see issue #101728 <https://github.com/rust-lang/rust/issues/101728>
355   = 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)
356
357error: expected `{` after struct name, found `:`
358  --> tests/ui/pin_project/invalid-bounds.rs:66:1
359   |
36066 | / pin_project! {
36167 | |     struct WhereClause4<T>
36268 | |     where
36369 | |         T: ?Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
364...  |
36572 | |     }
36673 | | }
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
374error: expected `{` after struct name, found `:`
375  --> tests/ui/pin_project/invalid-bounds.rs:66:1
376   |
37766 | / pin_project! {
37867 | |     struct WhereClause4<T>
37968 | |     where
38069 | |         T: ?Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
381...  |
38272 | |     }
38373 | | }
384   | | ^
385   | | |
386   | |_expected `{` after struct name
387   |   in this macro invocation
388   |
389   = 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)
390
391error: expected `{` after struct name, found `:`
392  --> tests/ui/pin_project/invalid-bounds.rs:75:1
393   |
39475 | / pin_project! {
39576 | |     struct WhereClause5<T>
39677 | |     where
39778 | |         T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
398...  |
39981 | |     }
40082 | | }
401   | | ^
402   | | |
403   | |_expected `{` after struct name
404   |   in this macro invocation
405   |
406   = 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)
407
408error: expected one of `+`, `,`, or `{`, found `:`
409  --> tests/ui/pin_project/invalid-bounds.rs:75:1
410   |
41175 | / pin_project! {
41276 | |     struct WhereClause5<T>
41377 | |     where
41478 | |         T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
415...  |
41681 | |     }
41782 | | }
418   | | ^
419   | | |
420   | |_expected one of `+`, `,`, or `{`
421   |   unexpected token
422   |
423   = note: type ascription syntax has been removed, see issue #101728 <https://github.com/rust-lang/rust/issues/101728>
424   = 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)
425
426error: expected `{` after struct name, found `:`
427  --> tests/ui/pin_project/invalid-bounds.rs:75:1
428   |
42975 | / pin_project! {
43076 | |     struct WhereClause5<T>
43177 | |     where
43278 | |         T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
433...  |
43481 | |     }
43582 | | }
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
443error: expected `{` after struct name, found `:`
444  --> tests/ui/pin_project/invalid-bounds.rs:75:1
445   |
44675 | / pin_project! {
44776 | |     struct WhereClause5<T>
44877 | |     where
44978 | |         T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
450...  |
45181 | |     }
45282 | | }
453   | | ^
454   | | |
455   | |_expected `{` after struct name
456   |   in this macro invocation
457   |
458   = 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)
459
460error: no rules expected the token `Sized`
461  --> tests/ui/pin_project/invalid-bounds.rs:87:21
462   |
46387 |         T: ?Sized : Sized //~ ERROR no rules expected the token `Sized`
464   |                     ^^^^^ no rules expected this token in macro call
465   |
466note: while trying to match meta-variable `$where_clause_lifetime_bound:lifetime`
467  --> src/lib.rs
468   |
469   |                 $(: $where_clause_lifetime_bound:lifetime)?
470   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
471