syntax: Keep full Tokens for macro_rules separators

This commit is contained in:
Vadim Petrochenkov 2019-06-08 20:20:00 +03:00
parent 5c45343f11
commit ffe23475cb
5 changed files with 32 additions and 37 deletions

View file

@ -55,10 +55,10 @@ LL | ($($a:ty, $b:ty)* -) => ();
= note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`
error: `$ty:ty` is followed by `-`, which is not allowed for `ty` fragments
--> $DIR/macro-input-future-proofing.rs:18:7
--> $DIR/macro-input-future-proofing.rs:18:15
|
LL | ($($ty:ty)-+) => ();
| ^^^^^^^^ not allowed after `ty` fragments
| ^ not allowed after `ty` fragments
|
= note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where`