1error: no rules expected the token `}` 2 --> tests/ui/pin_project/unsupported.rs:3:1 3 | 43 | / pin_project! { 54 | | struct Struct1 {} //~ ERROR no rules expected the token `}` 65 | | } 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 the token `}` 17 --> tests/ui/pin_project/unsupported.rs:3:1 18 | 193 | / pin_project! { 204 | | struct Struct1 {} //~ ERROR no rules expected the token `}` 215 | | } 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 the token `(` 32 --> tests/ui/pin_project/unsupported.rs:8:19 33 | 348 | 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 the token `;` 44 --> tests/ui/pin_project/unsupported.rs:12:19 45 | 4612 | 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 the token `(` 56 --> tests/ui/pin_project/unsupported.rs:17:10 57 | 5817 | 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 the token `(` 68 --> tests/ui/pin_project/unsupported.rs:17:10 69 | 7017 | 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 the token `union` 80 --> tests/ui/pin_project/unsupported.rs:21:1 81 | 8221 | / pin_project! { 8322 | | union Union { //~ ERROR no rules expected the token `union` 8423 | | x: u8, 8524 | | } 8625 | | } 87 | |_^ no rules expected this token in macro call 88 | 89note: while trying to match `struct` 90 --> src/lib.rs 91 | 92 | [$(#[$attrs:meta])* $vis:vis struct $ident:ident] 93 | ^^^^^^ 94 = note: captured metavariables except for `:tt`, `:ident` and `:lifetime` cannot be compared to other tokens 95 = note: see <https://doc.rust-lang.org/nightly/reference/macros-by-example.html#forwarding-a-matched-fragment> for more information 96 = 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) 97 98error: no rules expected the token `union` 99 --> tests/ui/pin_project/unsupported.rs:21:1 100 | 10121 | / pin_project! { 10222 | | union Union { //~ ERROR no rules expected the token `union` 10323 | | x: u8, 10424 | | } 10525 | | } 106 | |_^ no rules expected this token in macro call 107 | 108note: while trying to match `struct` 109 --> src/lib.rs 110 | 111 | [$(#[$attrs:meta])* $vis:vis struct $ident:ident] 112 | ^^^^^^ 113 = note: captured metavariables except for `:tt`, `:ident` and `:lifetime` cannot be compared to other tokens 114 = note: see <https://doc.rust-lang.org/nightly/reference/macros-by-example.html#forwarding-a-matched-fragment> for more information 115 = 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) 116