1 use pin_project_lite::pin_project; 2 3 pin_project! { 4 struct A<T> { 5 #[pin()] //~ ERROR no rules expected the token `(` 6 pinned: T, 7 } 8 } 9 10 pin_project! { 11 #[pin] //~ ERROR cannot find attribute `pin` in this scope 12 struct B<T> { 13 pinned: T, 14 } 15 } 16 17 pin_project! { 18 struct C<T> { 19 #[pin] 20 #[pin] //~ ERROR no rules expected the token `#` 21 pinned: T, 22 } 23 } 24 main()25fn main() {} 26