1 use auxiliary_macro::hidden_repr_cfg_not_any; 2 use pin_project::pin_project; 3 4 // `#[hidden_repr_cfg_not_any(packed)]` generates `#[cfg_attr(not(any()), repr(packed))]`. 5 #[pin_project] 6 #[hidden_repr_cfg_not_any(packed)] //~ ERROR may not be used on #[repr(packed)] types 7 struct S { 8 #[pin] 9 f: u32, 10 } 11 main()12fn main() {} 13