fn foo(o: myoption) -> int { let mut x: int = 5; match o { none:: => { } some::(t) => { x += 1; } } return x; } enum myoption { none, some(T), } fn main() { log(debug, 5); }