aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pin_project/packed_sneaky-2.rs
blob: b098358e6f4f962ab1ced78d0683907ad2076a12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use auxiliary_macro::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]
        f: u32,
    }
}

fn main() {}