blob: 40eceaab9e593fa4971f3dc8b9a908148d2062e9 [file] [log] [blame]
use auxiliary_macro::hidden_repr;
use pin_project::pin_project;
//~ ERROR may not be used on #[repr(packed)] types
// span is lost.
// Refs: https://github.com/rust-lang/rust/issues/43081
#[pin_project]
#[hidden_repr(packed)]
struct Foo {
#[cfg(any())]
#[pin]
field: u32,
#[cfg(not(any()))]
#[pin]
field: u8,
}
fn main() {}