Provide context for macro expansions which result in unparsed tokens.

Issue #22425
This commit is contained in:
Will Hipschman 2015-04-04 13:13:57 -07:00
parent b49a5ef003
commit ab3215406d
2 changed files with 20 additions and 3 deletions

View file

@ -24,12 +24,12 @@ macro_rules! ignored_pat {
() => ( 1, 2 ) //~ ERROR macro expansion ignores token `,`
}
ignored_item!();
ignored_item!(); //~ NOTE caused by the macro expansion here
fn main() {
ignored_expr!();
ignored_expr!(); //~ NOTE caused by the macro expansion here
match 1 {
ignored_pat!() => (),
ignored_pat!() => (), //~ NOTE caused by the macro expansion here
_ => (),
}
}