• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error: no rules expected `}`
2 --> tests/ui/pin_project/unsupported.rs:5:1
3  |
45 | / pin_project! {
56 | |     struct Struct1 {} //~ ERROR no rules expected the token `}`
67 | | }
7  | |_^ no rules expected this token in macro call
8  |
9note: while trying to match meta-variable `$field_vis:vis`
10 --> src/lib.rs
11  |
12  |                 $field_vis:vis $field:ident: $field_ty:ty
13  |                 ^^^^^^^^^^^^^^
14  = note: this error originates in the macro `$crate::__pin_project_expand` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
15
16error: no rules expected `}`
17 --> tests/ui/pin_project/unsupported.rs:5:1
18  |
195 | / pin_project! {
206 | |     struct Struct1 {} //~ ERROR no rules expected the token `}`
217 | | }
22  | |_^ no rules expected this token in macro call
23  |
24note: while trying to match meta-variable `$field_vis:vis`
25 --> src/lib.rs
26  |
27  |                 $field_vis:vis $field:ident: $field_ty:ty
28  |                 ^^^^^^^^^^^^^^
29  = note: this error originates in the macro `$crate::__pin_project_expand` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
30
31error: no rules expected `(`
32  --> tests/ui/pin_project/unsupported.rs:10:19
33   |
3410 |     struct Struct2(); //~ ERROR no rules expected the token `(`
35   |                   ^ no rules expected this token in macro call
36   |
37note: while trying to match `{`
38  --> src/lib.rs
39   |
40   |         {
41   |         ^
42
43error: no rules expected `;`
44  --> tests/ui/pin_project/unsupported.rs:14:19
45   |
4614 |     struct Struct3; //~ ERROR no rules expected the token `;`
47   |                   ^ no rules expected this token in macro call
48   |
49note: while trying to match `{`
50  --> src/lib.rs
51   |
52   |         {
53   |         ^
54
55error: no rules expected `(`
56  --> tests/ui/pin_project/unsupported.rs:19:10
57   |
5819 |         A(u8)
59   |          ^ no rules expected this token in macro call
60   |
61note: while trying to match `}`
62  --> src/lib.rs
63   |
64   |         }
65   |         ^
66
67error: no rules expected `(`
68  --> tests/ui/pin_project/unsupported.rs:19:10
69   |
7019 |         A(u8)
71   |          ^ no rules expected this token in macro call
72   |
73note: while trying to match `}`
74  --> src/lib.rs
75   |
76   |         }
77   |         ^
78
79error: no rules expected identifier `union`
80  --> tests/ui/pin_project/unsupported.rs:23:1
81   |
8223 | / pin_project! {
8324 | |     union Union { //~ ERROR no rules expected the token `union`
8425 | |         x: u8,
8526 | |     }
8627 | | }
87   | |_^ no rules expected this token in macro call
88   |
89note: while trying to match keyword `struct`
90  --> src/lib.rs
91   |
92   |         [$(#[$attrs:meta])* $vis:vis struct $ident:ident]
93   |                                      ^^^^^^
94   = note: this error originates in the macro `$crate::__pin_project_expand` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
95
96error: no rules expected identifier `union`
97  --> tests/ui/pin_project/unsupported.rs:23:1
98   |
9923 | / pin_project! {
10024 | |     union Union { //~ ERROR no rules expected the token `union`
10125 | |         x: u8,
10226 | |     }
10327 | | }
104   | |_^ no rules expected this token in macro call
105   |
106note: while trying to match keyword `struct`
107  --> src/lib.rs
108   |
109   |         [$(#[$attrs:meta])* $vis:vis struct $ident:ident]
110   |                                      ^^^^^^
111   = note: this error originates in the macro `$crate::__pin_project_expand` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
112