1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// Ensure that trailing semicolons cause errors by default macro_rules! foo { () => { true; //~ ERROR trailing semicolon in macro //~| WARN this was previously } } fn main() { let _val = match true { true => false, _ => foo!() }; }