1 use pin_project::pin_project; 2 3 // #[repr(packed = "")] is not valid format of #[repr(packed)] and will be 4 // rejected by rustc. 5 // However, we should not rely on the behavior of rustc that rejects this. 6 // https://github.com/taiki-e/pin-project/pull/324#discussion_r612388001 7 8 // https://github.com/taiki-e/pin-project/pull/324#discussion_r612388001 9 // https://github.com/rust-lang/rust/issues/83921 10 // #[repr(packed = "")] //~ ERROR E0552 11 // struct S1 { 12 // f: (), 13 // } 14 15 #[pin_project] 16 #[repr(packed = "")] //~ ERROR attribute should not be name-value pair 17 struct S2 { 18 f: (), 19 } 20 21 #[repr(packed = "")] //~ ERROR attribute should not be name-value pair 22 #[pin_project] 23 struct S3 { 24 f: (), 25 } 26 main()27fn main() {} 28