mirror of
https://github.com/Mercantec-GHC/h4-projekt-gruppe-0-sm.git
synced 2025-04-28 00:34:06 +02:00
14 lines
123 B
Plaintext
14 lines
123 B
Plaintext
|
|
enum Abc {
|
|
B(int),
|
|
C { v: int },
|
|
}
|
|
|
|
fn main() {
|
|
let b: Abc = Abc::B(123);
|
|
|
|
let c = Abc::C { v: 123 };
|
|
}
|
|
|
|
|