1 use pin_project::pin_project;
2 
3 #[pin_project]
4 #[repr(packed, C)] //~ ERROR may not be used on #[repr(packed)] types
5 struct A {
6     #[pin]
7     f: u8,
8 }
9 
10 // Test putting 'repr' before the 'pin_project' attribute
11 #[repr(packed, C)] //~ ERROR may not be used on #[repr(packed)] types
12 #[pin_project]
13 struct B {
14     #[pin]
15     f: u8,
16 }
17 
18 #[pin_project]
19 #[repr(packed(2))] //~ ERROR may not be used on #[repr(packed)] types
20 struct C {
21     #[pin]
22     f: u32,
23 }
24 
main()25 fn main() {}
26