1 // SPDX-License-Identifier: Apache-2.0 OR MIT 2 3 use auxiliary_macro::{hidden_repr_macro, HiddenRepr}; 4 use pin_project::pin_project; 5 6 hidden_repr_macro! {} //~ ERROR expected item after attributes 7 #[pin_project] 8 struct S1 { 9 #[pin] 10 f: u32, 11 } 12 13 macro_rules! hidden_repr_macro2 { 14 () => { 15 #[repr(packed)] //~ ERROR expected item after attributes 16 }; 17 } 18 19 hidden_repr_macro2! {} 20 #[pin_project] 21 struct S2 { 22 #[pin] 23 f: u32, 24 } 25 26 #[derive(HiddenRepr)] //~ ERROR expected item after attributes 27 struct S3 {} 28 #[pin_project] 29 struct S4 { 30 #[pin] 31 f: u32, 32 } 33 main()34fn main() {} 35