aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/cfg/packed_sneaky-span-issue-1.rs
blob: 42f57b55c61ab4bfbf1f7173fe69d5256a25ab27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use auxiliary_macro::hidden_repr;
use pin_project::pin_project;

#[pin_project]
#[hidden_repr(packed)]
struct S {
    //~^ ERROR may not be used on #[repr(packed)] types
    #[cfg(not(any()))]
    #[pin]
    f: u32,
    #[cfg(any())]
    #[pin]
    f: u8,
}

fn main() {}