mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
11 lines
99 B
Rust
11 lines
99 B
Rust
#[repr(u8)]
|
|
enum Foo {
|
|
Foo(u8),
|
|
}
|
|
|
|
fn main() {
|
|
match Foo::Foo(1) {
|
|
_ => ()
|
|
}
|
|
}
|