]> git.lizzy.rs Git - rust.git/blob - src/test/ui/repr/repr-transparent-other-reprs.rs
Auto merge of #100845 - timvermeulen:iter_compare, r=scottmcm
[rust.git] / src / test / ui / repr / repr-transparent-other-reprs.rs
1 // See also repr-transparent.rs
2
3 #[repr(transparent, C)] //~ ERROR cannot have other repr
4 struct TransparentPlusC {
5     ptr: *const u8
6 }
7
8 #[repr(transparent, packed)] //~ ERROR cannot have other repr
9 struct TransparentPlusPacked(*const u8);
10
11 #[repr(transparent, align(2))] //~ ERROR cannot have other repr
12 struct TransparentPlusAlign(u8);
13
14 #[repr(transparent)] //~ ERROR cannot have other repr
15 #[repr(C)]
16 struct SeparateAttributes(*mut u8);
17
18 fn main() {}