rust/tests/ui/error-codes/E0517.rs
2023-01-11 09:32:08 +00:00

16 lines
221 B
Rust

#[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() {
}