1 use auxiliary_macro::hidden_repr; 2 use pin_project::pin_project; 3 4 #[pin_project] 5 #[hidden_repr(packed)] 6 struct S { 7 //~^ ERROR may not be used on #[repr(packed)] types 8 #[cfg(not(any()))] 9 #[pin] 10 f: u32, 11 #[cfg(any())] 12 #[pin] 13 f: u8, 14 } 15 main()16 fn main() {} 17