1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#[repr(C)] //~ ERROR: E0517 type Foo = u8; #[repr(packed)] //~ ERROR: E0517 enum Foo2 {Bar, Baz} #[repr(u8)] //~ ERROR: E0517 struct Foo3 {bar: bool, baz: bool} #[repr(C)] //~ ERROR: E0517 impl Foo3 { } fn main() { }