1 2 3 4 5 6 7 8 9 10 11 12 13 14
macro_rules! m { () => { {} }; } enum Enum { A, B } fn main() { match Enum::A { //~^ ERROR non-exhaustive patterns Enum::A => m!() } }