1 2 3 4 5 6 7 8 9 10 11 12 13 14
enum A { B, C } mod foo { pub fn bar() {} } fn main() { match (true, false) { A::B => (), //~^ ERROR mismatched types //~| expected `(bool, bool)`, found `A` //~| expected tuple `(bool, bool)` //~| found enum `A` _ => () } }