1 // See also repr-transparent.rs
3 #[repr(transparent, C)] //~ ERROR cannot have other repr
4 struct TransparentPlusC {
8 #[repr(transparent, packed)] //~ ERROR cannot have other repr
9 struct TransparentPlusPacked(*const u8);
11 #[repr(transparent, align(2))] //~ ERROR cannot have other repr
12 struct TransparentPlusAlign(u8);
14 #[repr(transparent)] //~ ERROR cannot have other repr
16 struct SeparateAttributes(*mut u8);