syntax: Keep full Tokens for macro_rules separators
This commit is contained in:
parent
5c45343f11
commit
ffe23475cb
5 changed files with 32 additions and 37 deletions
|
|
@ -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`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue