mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
17 lines
271 B
Rust
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() {}
|