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

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

fn main() {}