1 #![feature(repr_align)]
3 // See also repr-transparent.rs
5 #[repr(transparent, C)] //~ ERROR cannot have other repr
6 struct TransparentPlusC {
10 #[repr(transparent, packed)] //~ ERROR cannot have other repr
11 struct TransparentPlusPacked(*const u8);
13 #[repr(transparent, align(2))] //~ ERROR cannot have other repr
14 struct TransparentPlusAlign(u8);
16 #[repr(transparent)] //~ ERROR cannot have other repr
18 struct SeparateAttributes(*mut u8);