2019-12-31 21:25:16 +01:00
|
|
|
#[repr(C, u8)] //~ ERROR conflicting representation hints
|
2020-01-28 00:27:57 +01:00
|
|
|
//~^ WARN this was previously accepted
|
2018-01-01 21:42:12 +01:00
|
|
|
enum Foo {
|
|
|
|
|
A,
|
|
|
|
|
B,
|
|
|
|
|
}
|
|
|
|
|
|
2019-12-31 21:25:16 +01:00
|
|
|
#[repr(C)] //~ ERROR conflicting representation hints
|
2020-01-28 00:27:57 +01:00
|
|
|
//~^ WARN this was previously accepted
|
2018-01-01 21:42:12 +01:00
|
|
|
#[repr(u8)]
|
|
|
|
|
enum Bar {
|
|
|
|
|
A,
|
|
|
|
|
B,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|