blob: aa65d3314912a724d0dc950f2c4c3c58d5752f29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
use auxiliary_macros::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() {}
|