]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/attr-usage-repr.rs
2 #![feature(repr_align_enum)]
4 #[repr(C)] //~ ERROR: attribute should be applied to struct, enum or union
8 struct SExtern(f64, f64);
11 struct SPacked(f64, f64);
14 struct SSimd(f64, f64);
16 #[repr(i8)] //~ ERROR: attribute should be applied to enum
17 struct SInt(f64, f64);
25 #[repr(packed)] //~ ERROR: attribute should be applied to struct
28 #[repr(simd)] //~ ERROR: attribute should be applied to struct