Provide context for macro expansions which result in unparsed tokens.
Issue #22425
This commit is contained in:
parent
b49a5ef003
commit
ab3215406d
2 changed files with 20 additions and 3 deletions
|
|
@ -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
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue