mirror of
https://github.com/Mercantec-GHC/h4-projekt-gruppe-0-sm.git
synced 2025-04-28 08:44:06 +02:00
16 lines
154 B
Plaintext
16 lines
154 B
Plaintext
|
|
enum S {
|
|
A(int),
|
|
B { v: int },
|
|
}
|
|
|
|
fn main() {
|
|
let s = S::A(123);
|
|
match s {
|
|
S::A(v) => {},
|
|
S::B { v: v } => {},
|
|
}
|
|
}
|
|
|
|
|