rust/src/test/run-pass/regions-nullary-variant.rs
2012-04-23 08:02:59 -07:00

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() {}