Source code
Revision control
Copy as Markdown
Other Tools
use pin_project::pin_project;
// #[repr(packed = "")] is not valid format of #[repr(packed)] and will be
// rejected by rustc.
// However, we should not rely on the behavior of rustc that rejects this.
// #[repr(packed = "")] //~ ERROR E0552
// struct S1 {
// f: (),
// }
#[pin_project]
#[repr(packed = "")] //~ ERROR attribute should not be name-value pair
struct S2 {
f: (),
}
#[repr(packed = "")] //~ ERROR attribute should not be name-value pair
#[pin_project]
struct S3 {
f: (),
}
fn main() {}