9 lines
124 B
Rust
9 lines
124 B
Rust
|
enum roption/& {
|
||
|
a, b(&uint)
|
||
|
}
|
||
|
|
||
|
fn mk(cond: bool, ptr: &uint) -> roption {
|
||
|
if cond {a} else {b(ptr)}
|
||
|
}
|
||
|
|
||
|
fn main() {}
|