429 lines
14 KiB
Plaintext
429 lines
14 KiB
Plaintext
error: no rules expected the token `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:4:33
|
|
|
|
|
4 | struct Generics1<T: 'static : Sized> { //~ ERROR no rules expected the token `:`
|
|
| ^ no rules expected this token in macro call
|
|
|
|
error: no rules expected the token `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:10:33
|
|
|
|
|
10 | struct Generics2<T: 'static : ?Sized> { //~ ERROR no rules expected the token `:`
|
|
| ^ no rules expected this token in macro call
|
|
|
|
error: expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:15:1
|
|
|
|
|
15 | / pin_project! {
|
|
16 | | struct Generics3<T: Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
17 | | field: T,
|
|
18 | | }
|
|
19 | | }
|
|
| | ^
|
|
| | |
|
|
| | expected one of `+`, `,`, `=`, or `>`
|
|
| |_unexpected token
|
|
| in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:15:1
|
|
|
|
|
15 | / pin_project! {
|
|
16 | | struct Generics3<T: Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
17 | | field: T,
|
|
18 | | }
|
|
19 | | }
|
|
| | ^
|
|
| | |
|
|
| |_expected one of `+`, `,`, `=`, or `>`
|
|
| unexpected token
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:15:1
|
|
|
|
|
15 | / pin_project! {
|
|
16 | | struct Generics3<T: Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
17 | | field: T,
|
|
18 | | }
|
|
19 | | }
|
|
| | ^
|
|
| | |
|
|
| | expected one of `+`, `,`, `=`, or `>`
|
|
| |_unexpected token
|
|
| in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:15:1
|
|
|
|
|
15 | / pin_project! {
|
|
16 | | struct Generics3<T: Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
17 | | field: T,
|
|
18 | | }
|
|
19 | | }
|
|
| | ^
|
|
| | |
|
|
| | expected one of `+`, `,`, `=`, or `>`
|
|
| |_unexpected token
|
|
| in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:21:1
|
|
|
|
|
21 | / pin_project! {
|
|
22 | | struct Generics4<T: ?Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
23 | | field: T,
|
|
24 | | }
|
|
25 | | }
|
|
| | ^
|
|
| | |
|
|
| | expected one of `+`, `,`, `=`, or `>`
|
|
| |_unexpected token
|
|
| in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:21:1
|
|
|
|
|
21 | / pin_project! {
|
|
22 | | struct Generics4<T: ?Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
23 | | field: T,
|
|
24 | | }
|
|
25 | | }
|
|
| | ^
|
|
| | |
|
|
| |_expected one of `+`, `,`, `=`, or `>`
|
|
| unexpected token
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:21:1
|
|
|
|
|
21 | / pin_project! {
|
|
22 | | struct Generics4<T: ?Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
23 | | field: T,
|
|
24 | | }
|
|
25 | | }
|
|
| | ^
|
|
| | |
|
|
| | expected one of `+`, `,`, `=`, or `>`
|
|
| |_unexpected token
|
|
| in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:21:1
|
|
|
|
|
21 | / pin_project! {
|
|
22 | | struct Generics4<T: ?Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
23 | | field: T,
|
|
24 | | }
|
|
25 | | }
|
|
| | ^
|
|
| | |
|
|
| | expected one of `+`, `,`, `=`, or `>`
|
|
| |_unexpected token
|
|
| in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:27:1
|
|
|
|
|
27 | / pin_project! {
|
|
28 | | struct Generics5<T: Sized : ?Sized> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
29 | | field: T,
|
|
30 | | }
|
|
31 | | }
|
|
| | ^
|
|
| | |
|
|
| | expected one of `+`, `,`, `=`, or `>`
|
|
| |_unexpected token
|
|
| in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:27:1
|
|
|
|
|
27 | / pin_project! {
|
|
28 | | struct Generics5<T: Sized : ?Sized> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
29 | | field: T,
|
|
30 | | }
|
|
31 | | }
|
|
| | ^
|
|
| | |
|
|
| |_expected one of `+`, `,`, `=`, or `>`
|
|
| unexpected token
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:27:1
|
|
|
|
|
27 | / pin_project! {
|
|
28 | | struct Generics5<T: Sized : ?Sized> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
29 | | field: T,
|
|
30 | | }
|
|
31 | | }
|
|
| | ^
|
|
| | |
|
|
| | expected one of `+`, `,`, `=`, or `>`
|
|
| |_unexpected token
|
|
| in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:27:1
|
|
|
|
|
27 | / pin_project! {
|
|
28 | | struct Generics5<T: Sized : ?Sized> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
|
|
29 | | field: T,
|
|
30 | | }
|
|
31 | | }
|
|
| | ^
|
|
| | |
|
|
| | expected one of `+`, `,`, `=`, or `>`
|
|
| |_unexpected token
|
|
| in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: no rules expected the token `Sized`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:34:34
|
|
|
|
|
34 | struct Generics6<T: ?Sized : Sized> { //~ ERROR no rules expected the token `Sized`
|
|
| ^^^^^ no rules expected this token in macro call
|
|
|
|
error: no rules expected the token `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:42:20
|
|
|
|
|
42 | T: 'static : Sized //~ ERROR no rules expected the token `:`
|
|
| ^ no rules expected this token in macro call
|
|
|
|
error: no rules expected the token `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:51:20
|
|
|
|
|
51 | T: 'static : ?Sized //~ ERROR no rules expected the token `:`
|
|
| ^ no rules expected this token in macro call
|
|
|
|
error: expected `{` after struct name, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:57:1
|
|
|
|
|
57 | / pin_project! {
|
|
58 | | struct WhereClause3<T>
|
|
59 | | where
|
|
60 | | T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
|
|
... |
|
|
63 | | }
|
|
64 | | }
|
|
| | ^
|
|
| | |
|
|
| |_expected `{` after struct name
|
|
| in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected one of `+`, `,`, or `{`, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:57:1
|
|
|
|
|
57 | / pin_project! {
|
|
58 | | struct WhereClause3<T>
|
|
59 | | where
|
|
60 | | T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
|
|
... |
|
|
63 | | }
|
|
64 | | }
|
|
| | ^
|
|
| | |
|
|
| |_expected one of `+`, `,`, or `{`
|
|
| unexpected token
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected `{` after struct name, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:57:1
|
|
|
|
|
57 | / pin_project! {
|
|
58 | | struct WhereClause3<T>
|
|
59 | | where
|
|
60 | | T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
|
|
... |
|
|
63 | | }
|
|
64 | | }
|
|
| | ^
|
|
| | |
|
|
| |_expected `{` after struct name
|
|
| in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected `{` after struct name, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:57:1
|
|
|
|
|
57 | / pin_project! {
|
|
58 | | struct WhereClause3<T>
|
|
59 | | where
|
|
60 | | T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
|
|
... |
|
|
63 | | }
|
|
64 | | }
|
|
| | ^
|
|
| | |
|
|
| |_expected `{` after struct name
|
|
| in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected `{` after struct name, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:66:1
|
|
|
|
|
66 | / pin_project! {
|
|
67 | | struct WhereClause4<T>
|
|
68 | | where
|
|
69 | | T: ?Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
|
|
... |
|
|
72 | | }
|
|
73 | | }
|
|
| | ^
|
|
| | |
|
|
| |_expected `{` after struct name
|
|
| in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected one of `+`, `,`, or `{`, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:66:1
|
|
|
|
|
66 | / pin_project! {
|
|
67 | | struct WhereClause4<T>
|
|
68 | | where
|
|
69 | | T: ?Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
|
|
... |
|
|
72 | | }
|
|
73 | | }
|
|
| | ^
|
|
| | |
|
|
| |_expected one of `+`, `,`, or `{`
|
|
| unexpected token
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected `{` after struct name, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:66:1
|
|
|
|
|
66 | / pin_project! {
|
|
67 | | struct WhereClause4<T>
|
|
68 | | where
|
|
69 | | T: ?Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
|
|
... |
|
|
72 | | }
|
|
73 | | }
|
|
| | ^
|
|
| | |
|
|
| |_expected `{` after struct name
|
|
| in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected `{` after struct name, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:66:1
|
|
|
|
|
66 | / pin_project! {
|
|
67 | | struct WhereClause4<T>
|
|
68 | | where
|
|
69 | | T: ?Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
|
|
... |
|
|
72 | | }
|
|
73 | | }
|
|
| | ^
|
|
| | |
|
|
| |_expected `{` after struct name
|
|
| in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected `{` after struct name, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:75:1
|
|
|
|
|
75 | / pin_project! {
|
|
76 | | struct WhereClause5<T>
|
|
77 | | where
|
|
78 | | T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
|
|
... |
|
|
81 | | }
|
|
82 | | }
|
|
| | ^
|
|
| | |
|
|
| |_expected `{` after struct name
|
|
| in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected one of `+`, `,`, or `{`, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:75:1
|
|
|
|
|
75 | / pin_project! {
|
|
76 | | struct WhereClause5<T>
|
|
77 | | where
|
|
78 | | T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
|
|
... |
|
|
81 | | }
|
|
82 | | }
|
|
| | ^
|
|
| | |
|
|
| |_expected one of `+`, `,`, or `{`
|
|
| unexpected token
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected `{` after struct name, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:75:1
|
|
|
|
|
75 | / pin_project! {
|
|
76 | | struct WhereClause5<T>
|
|
77 | | where
|
|
78 | | T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
|
|
... |
|
|
81 | | }
|
|
82 | | }
|
|
| | ^
|
|
| | |
|
|
| |_expected `{` after struct name
|
|
| in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: expected `{` after struct name, found `:`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:75:1
|
|
|
|
|
75 | / pin_project! {
|
|
76 | | struct WhereClause5<T>
|
|
77 | | where
|
|
78 | | T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
|
|
... |
|
|
81 | | }
|
|
82 | | }
|
|
| | ^
|
|
| | |
|
|
| |_expected `{` after struct name
|
|
| in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `$crate::__pin_project_parse_generics` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: no rules expected the token `Sized`
|
|
--> tests/ui/pin_project/invalid-bounds.rs:87:21
|
|
|
|
|
87 | T: ?Sized : Sized //~ ERROR no rules expected the token `Sized`
|
|
| ^^^^^ no rules expected this token in macro call
|