rust/tests/ui/issues/issue-47094.rs
2023-01-11 09:32:08 +00:00

17 lines
271 B
Rust

#[repr(C, u8)] //~ ERROR conflicting representation hints
//~^ WARN this was previously accepted
enum Foo {
A,
B,
}
#[repr(C)] //~ ERROR conflicting representation hints
//~^ WARN this was previously accepted
#[repr(u8)]
enum Bar {
A,
B,
}
fn main() {}