Rephrase error message on invalid fragment specifiers in macros.
Also, print help on valid fragment specifiers.
This commit is contained in:
parent
aedcbb9d82
commit
8a22454731
3 changed files with 11 additions and 7 deletions
|
|
@ -9,6 +9,6 @@
|
|||
// except according to those terms.
|
||||
|
||||
macro_rules! test { ($wrong:t_ty ..) => () }
|
||||
//~^ ERROR: unrecognized builtin nonterminal `t_ty`
|
||||
//~^ ERROR: invalid fragment specifier `t_ty`
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue