Rephrase error message on invalid fragment specifiers in macros.

Also, print help on valid fragment specifiers.
This commit is contained in:
Alexander Korolkov 2015-01-23 18:51:12 +03:00
parent aedcbb9d82
commit 8a22454731
3 changed files with 11 additions and 7 deletions

View file

@ -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() {}