17 lines
123 B
Rust
17 lines
123 B
Rust
// compile-pass
|
|
|
|
#[repr(C,u8)]
|
|
enum Foo {
|
|
A,
|
|
B,
|
|
}
|
|
|
|
#[repr(C)]
|
|
#[repr(u8)]
|
|
enum Bar {
|
|
A,
|
|
B,
|
|
}
|
|
|
|
fn main() {}
|