// run-pass #![allow(unused_assignments)] #![allow(non_camel_case_types)] enum foo { arm(T), } fn altfoo(f: foo) { let mut hit = false; match f { foo::arm::(_x) => { println!("in arm"); hit = true; } } assert!((hit)); } pub fn main() { altfoo::(foo::arm::(10)); }