• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
7error: no rules expected the token `:`
8  --> tests/ui/pin_project/invalid-bounds.rs:10:33
9   |
1010 |     struct Generics2<T: 'static : ?Sized> { //~ ERROR no rules expected the token `:`
11   |                                 ^ no rules expected this token in macro call
12
13error: expected one of `+`, `,`, `=`, or `>`, found `:`
14  --> tests/ui/pin_project/invalid-bounds.rs:15:1
15   |
1615 | / pin_project! {
1716 | |     struct Generics3<T: Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
1817 | |         field: T,
1918 | |     }
2019 | | }
21   | | ^
22   | | |
23   | | expected one of `+`, `,`, `=`, or `>`
24   | |_unexpected token
25   |   in this macro invocation
26   |
27   = note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
28
29error: expected one of `+`, `,`, `=`, or `>`, found `:`
30  --> tests/ui/pin_project/invalid-bounds.rs:15:1
31   |
3215 | / pin_project! {
3316 | |     struct Generics3<T: Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
3417 | |         field: T,
3518 | |     }
3619 | | }
37   | | ^
38   | | |
39   | |_expected one of `+`, `,`, `=`, or `>`
40   |   unexpected token
41   |
42   = note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
43
44error: expected one of `+`, `,`, `=`, or `>`, found `:`
45  --> tests/ui/pin_project/invalid-bounds.rs:15:1
46   |
4715 | / pin_project! {
4816 | |     struct Generics3<T: Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
4917 | |         field: T,
5018 | |     }
5119 | | }
52   | | ^
53   | | |
54   | | expected one of `+`, `,`, `=`, or `>`
55   | |_unexpected token
56   |   in this macro invocation
57   |
58   = note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
59
60error: expected one of `+`, `,`, `=`, or `>`, found `:`
61  --> tests/ui/pin_project/invalid-bounds.rs:15:1
62   |
6315 | / pin_project! {
6416 | |     struct Generics3<T: Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
6517 | |         field: T,
6618 | |     }
6719 | | }
68   | | ^
69   | | |
70   | | expected one of `+`, `,`, `=`, or `>`
71   | |_unexpected token
72   |   in this macro invocation
73   |
74   = note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
75
76error: expected one of `+`, `,`, `=`, or `>`, found `:`
77  --> tests/ui/pin_project/invalid-bounds.rs:21:1
78   |
7921 | / pin_project! {
8022 | |     struct Generics4<T: ?Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
8123 | |         field: T,
8224 | |     }
8325 | | }
84   | | ^
85   | | |
86   | | expected one of `+`, `,`, `=`, or `>`
87   | |_unexpected token
88   |   in this macro invocation
89   |
90   = note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
91
92error: expected one of `+`, `,`, `=`, or `>`, found `:`
93  --> tests/ui/pin_project/invalid-bounds.rs:21:1
94   |
9521 | / pin_project! {
9622 | |     struct Generics4<T: ?Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
9723 | |         field: T,
9824 | |     }
9925 | | }
100   | | ^
101   | | |
102   | |_expected one of `+`, `,`, `=`, or `>`
103   |   unexpected token
104   |
105   = note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
106
107error: expected one of `+`, `,`, `=`, or `>`, found `:`
108  --> tests/ui/pin_project/invalid-bounds.rs:21:1
109   |
11021 | / pin_project! {
11122 | |     struct Generics4<T: ?Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
11223 | |         field: T,
11324 | |     }
11425 | | }
115   | | ^
116   | | |
117   | | expected one of `+`, `,`, `=`, or `>`
118   | |_unexpected token
119   |   in this macro invocation
120   |
121   = note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
122
123error: expected one of `+`, `,`, `=`, or `>`, found `:`
124  --> tests/ui/pin_project/invalid-bounds.rs:21:1
125   |
12621 | / pin_project! {
12722 | |     struct Generics4<T: ?Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
12823 | |         field: T,
12924 | |     }
13025 | | }
131   | | ^
132   | | |
133   | | expected one of `+`, `,`, `=`, or `>`
134   | |_unexpected token
135   |   in this macro invocation
136   |
137   = note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
138
139error: expected one of `+`, `,`, `=`, or `>`, found `:`
140  --> tests/ui/pin_project/invalid-bounds.rs:27:1
141   |
14227 | / pin_project! {
14328 | |     struct Generics5<T: Sized : ?Sized> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
14429 | |         field: T,
14530 | |     }
14631 | | }
147   | | ^
148   | | |
149   | | expected one of `+`, `,`, `=`, or `>`
150   | |_unexpected token
151   |   in this macro invocation
152   |
153   = note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
154
155error: expected one of `+`, `,`, `=`, or `>`, found `:`
156  --> tests/ui/pin_project/invalid-bounds.rs:27:1
157   |
15827 | / pin_project! {
15928 | |     struct Generics5<T: Sized : ?Sized> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
16029 | |         field: T,
16130 | |     }
16231 | | }
163   | | ^
164   | | |
165   | |_expected one of `+`, `,`, `=`, or `>`
166   |   unexpected token
167   |
168   = note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
169
170error: expected one of `+`, `,`, `=`, or `>`, found `:`
171  --> tests/ui/pin_project/invalid-bounds.rs:27:1
172   |
17327 | / pin_project! {
17428 | |     struct Generics5<T: Sized : ?Sized> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
17529 | |         field: T,
17630 | |     }
17731 | | }
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` (in Nightly builds, run with -Z macro-backtrace for more info)
185
186error: expected one of `+`, `,`, `=`, or `>`, found `:`
187  --> tests/ui/pin_project/invalid-bounds.rs:27:1
188   |
18927 | / pin_project! {
19028 | |     struct Generics5<T: Sized : ?Sized> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
19129 | |         field: T,
19230 | |     }
19331 | | }
194   | | ^
195   | | |
196   | | expected one of `+`, `,`, `=`, or `>`
197   | |_unexpected token
198   |   in this macro invocation
199   |
200   = note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
201
202error: no rules expected the token `Sized`
203  --> tests/ui/pin_project/invalid-bounds.rs:34:34
204   |
20534 |     struct Generics6<T: ?Sized : Sized> { //~ ERROR no rules expected the token `Sized`
206   |                                  ^^^^^ no rules expected this token in macro call
207
208error: no rules expected the token `:`
209  --> tests/ui/pin_project/invalid-bounds.rs:42:20
210   |
21142 |         T: 'static : Sized //~ ERROR no rules expected the token `:`
212   |                    ^ no rules expected this token in macro call
213
214error: no rules expected the token `:`
215  --> tests/ui/pin_project/invalid-bounds.rs:51:20
216   |
21751 |         T: 'static : ?Sized //~ ERROR no rules expected the token `:`
218   |                    ^ no rules expected this token in macro call
219
220error: expected `{` after struct name, found `:`
221  --> tests/ui/pin_project/invalid-bounds.rs:57:1
222   |
22357 | / pin_project! {
22458 | |     struct WhereClause3<T>
22559 | |     where
22660 | |         T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
227...  |
22863 | |     }
22964 | | }
230   | | ^
231   | | |
232   | |_expected `{` after struct name
233   |   in this macro invocation
234   |
235   = note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
236
237error: expected one of `+`, `,`, or `{`, found `:`
238  --> tests/ui/pin_project/invalid-bounds.rs:57:1
239   |
24057 | / pin_project! {
24158 | |     struct WhereClause3<T>
24259 | |     where
24360 | |         T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
244...  |
24563 | |     }
24664 | | }
247   | | ^
248   | | |
249   | |_expected one of `+`, `,`, or `{`
250   |   unexpected token
251   |
252   = note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
253
254error: expected `{` after struct name, found `:`
255  --> tests/ui/pin_project/invalid-bounds.rs:57:1
256   |
25757 | / pin_project! {
25858 | |     struct WhereClause3<T>
25959 | |     where
26060 | |         T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
261...  |
26263 | |     }
26364 | | }
264   | | ^
265   | | |
266   | |_expected `{` after struct name
267   |   in this macro invocation
268   |
269   = note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
270
271error: expected `{` after struct name, found `:`
272  --> tests/ui/pin_project/invalid-bounds.rs:57:1
273   |
27457 | / pin_project! {
27558 | |     struct WhereClause3<T>
27659 | |     where
27760 | |         T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
278...  |
27963 | |     }
28064 | | }
281   | | ^
282   | | |
283   | |_expected `{` after struct name
284   |   in this macro invocation
285   |
286   = note: this error originates in the macro `$crate::__pin_project_parse_generics` (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:66:1
290   |
29166 | / pin_project! {
29267 | |     struct WhereClause4<T>
29368 | |     where
29469 | |         T: ?Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
295...  |
29672 | |     }
29773 | | }
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` (in Nightly builds, run with -Z macro-backtrace for more info)
304
305error: expected one of `+`, `,`, or `{`, found `:`
306  --> tests/ui/pin_project/invalid-bounds.rs:66:1
307   |
30866 | / pin_project! {
30967 | |     struct WhereClause4<T>
31068 | |     where
31169 | |         T: ?Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
312...  |
31372 | |     }
31473 | | }
315   | | ^
316   | | |
317   | |_expected one of `+`, `,`, or `{`
318   |   unexpected token
319   |
320   = note: this error originates in the macro `$crate::__pin_project_parse_generics` (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` (in Nightly builds, run with -Z macro-backtrace for more info)
338
339error: expected `{` after struct name, 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 `{` after struct name
352   |   in this macro invocation
353   |
354   = note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
355
356error: expected `{` after struct name, found `:`
357  --> tests/ui/pin_project/invalid-bounds.rs:75:1
358   |
35975 | / pin_project! {
36076 | |     struct WhereClause5<T>
36177 | |     where
36278 | |         T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
363...  |
36481 | |     }
36582 | | }
366   | | ^
367   | | |
368   | |_expected `{` after struct name
369   |   in this macro invocation
370   |
371   = note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
372
373error: expected one of `+`, `,`, or `{`, found `:`
374  --> tests/ui/pin_project/invalid-bounds.rs:75:1
375   |
37675 | / pin_project! {
37776 | |     struct WhereClause5<T>
37877 | |     where
37978 | |         T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
380...  |
38181 | |     }
38282 | | }
383   | | ^
384   | | |
385   | |_expected one of `+`, `,`, or `{`
386   |   unexpected token
387   |
388   = note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
389
390error: expected `{` after struct name, found `:`
391  --> tests/ui/pin_project/invalid-bounds.rs:75:1
392   |
39375 | / pin_project! {
39476 | |     struct WhereClause5<T>
39577 | |     where
39678 | |         T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
397...  |
39881 | |     }
39982 | | }
400   | | ^
401   | | |
402   | |_expected `{` after struct name
403   |   in this macro invocation
404   |
405   = note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
406
407error: expected `{` after struct name, found `:`
408  --> tests/ui/pin_project/invalid-bounds.rs:75:1
409   |
41075 | / pin_project! {
41176 | |     struct WhereClause5<T>
41277 | |     where
41378 | |         T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
414...  |
41581 | |     }
41682 | | }
417   | | ^
418   | | |
419   | |_expected `{` after struct name
420   |   in this macro invocation
421   |
422   = note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
423
424error: no rules expected the token `Sized`
425  --> tests/ui/pin_project/invalid-bounds.rs:87:21
426   |
42787 |         T: ?Sized : Sized //~ ERROR no rules expected the token `Sized`
428   |                     ^^^^^ no rules expected this token in macro call
429