1error: no rules expected the token `struct`
2 --> tests/ui/pin_project/invalid.rs:3:1
3  |
43 | / pin_project! {
54 | |     struct A<T> {
65 | |         #[pin()] //~ ERROR no rules expected the token `(`
76 | |         pinned: T,
87 | |     }
98 | | }
10  | |_^ no rules expected this token in macro call
11  |
12  = note: this error originates in the macro `$crate::__pin_project_internal` (in Nightly builds, run with -Z macro-backtrace for more info)
13
14error: no rules expected the token `struct`
15  --> tests/ui/pin_project/invalid.rs:17:1
16   |
1717 | / pin_project! {
1818 | |     struct C<T> {
1919 | |         #[pin]
2020 | |         #[pin] //~ ERROR no rules expected the token `#`
2121 | |         pinned: T,
2222 | |     }
2323 | | }
24   | |_^ no rules expected this token in macro call
25   |
26   = note: this error originates in the macro `$crate::__pin_project_internal` (in Nightly builds, run with -Z macro-backtrace for more info)
27
28error: cannot find attribute `pin` in this scope
29  --> tests/ui/pin_project/invalid.rs:11:7
30   |
3111 |     #[pin] //~ ERROR cannot find attribute `pin` in this scope
32   |       ^^^
33