//@ run-pass #![allow(dead_code)] #![allow(unused_mut)] #![allow(non_camel_case_types)] fn foo(o: myoption) -> isize { let mut x: isize; match o { myoption::none:: => { panic!(); } myoption::some::(_t) => { x = 5; } } return x; } enum myoption { none, some(T), } pub fn main() { println!("{}", 5); }