1 // In case of macro expansion, the errors should be matched using the deepest callsite in the
2 // macro call stack whose span is in the current file
4 macro_rules! macro_with_error {
6 println!("{"); //~ ERROR invalid
16 //^ In case of a local macro we want the error to be matched in the macro definition, not here
18 println!("}"); //~ ERROR invalid
19 //^ In case of an external macro we want the error to be matched here