aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pin_project/packed_sneaky-2.rs
blob: d16270635e8bfde11df75f0db6ceb7424d7b4f07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use auxiliary_macros::hidden_repr_macro;
use pin_project::pin_project;

hidden_repr_macro! { //~ ERROR may not be used on #[repr(packed)] types
    #[pin_project]
    struct B {
        #[pin]
        field: u32,
    }
}

fn main() {}