mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-12 23:13:15 +00:00
13 lines
168 B
Rust
13 lines
168 B
Rust
![]() |
enum TestEnum {
|
||
|
Arm1(),
|
||
|
Arm2,
|
||
|
}
|
||
|
|
||
|
fn foo() {
|
||
|
let test = TestEnum::Arm1;
|
||
|
match test {
|
||
|
TestEnum::Arm1() => {}
|
||
|
TestEnum::Arm2 => {}
|
||
|
}
|
||
|
}
|