1 use pin_project_lite::pin_project; 2 3 pin_project! { 4 struct Struct1 {} //~ ERROR no rules expected the token `}` 5 } 6 7 pin_project! { 8 struct Struct2(); //~ ERROR no rules expected the token `(` 9 } 10 11 pin_project! { 12 struct Struct3; //~ ERROR no rules expected the token `;` 13 } 14 15 pin_project! { 16 enum Enum { //~ ERROR no rules expected the token `enum` 17 A(u8) 18 } 19 } 20 21 pin_project! { 22 union Union { //~ ERROR no rules expected the token `union` 23 x: u8, 24 } 25 } 26 main()27fn main() {} 28