// run-pass #![allow(dead_code)] #![allow(non_camel_case_types)] enum maybe { nothing, just(T), } fn foo(x: maybe) { match x { maybe::nothing => { println!("A"); } maybe::just(_a) => { println!("B"); } } } pub fn main() { }