]> git.lizzy.rs Git - rust.git/blob - src/test/ui/repr/repr-transparent-other-reprs.rs
Override rustc version in ui and mir-opt tests to get stable hashes
[rust.git] / src / test / ui / repr / repr-transparent-other-reprs.rs
1 #![feature(repr_align)]
2
3 // See also repr-transparent.rs
4
5 #[repr(transparent, C)] //~ ERROR cannot have other repr
6 struct TransparentPlusC {
7     ptr: *const u8
8 }
9
10 #[repr(transparent, packed)] //~ ERROR cannot have other repr
11 struct TransparentPlusPacked(*const u8);
12
13 #[repr(transparent, align(2))] //~ ERROR cannot have other repr
14 struct TransparentPlusAlign(u8);
15
16 #[repr(transparent)] //~ ERROR cannot have other repr
17 #[repr(C)]
18 struct SeparateAttributes(*mut u8);
19
20 fn main() {}