3 #![allow(non_camel_case_types)]
5 // a bug was causing this to complain about leaked memory on exit
7 enum t { foo(isize, usize), bar(isize, Option<isize>), }
11 t::bar(_i, Some::<isize>(_)) => { println!("wrong pattern matched"); panic!(); }
12 _ => { println!("succeeded"); }
16 pub fn main() { nested(t::bar(1, None::<isize>)); }