Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upmacro_rules treating ';' as an ident #26444
Comments
steveklabnik
added
the
A-macros
label
Jun 23, 2015
This comment has been minimized.
This comment has been minimized.
|
I have this problem with = too, in the pattern |
This comment has been minimized.
This comment has been minimized.
|
It's a known limitation of macros, see https://doc.rust-lang.org/book/macros.html#syntactic-requirements.
|
This comment has been minimized.
This comment has been minimized.
|
What's strange is that it's perfectly capable of using |
This comment has been minimized.
This comment has been minimized.
|
Also, the example at that point in the book doesn't make any sense. Neither |
This comment has been minimized.
This comment has been minimized.
|
Current output:
|
brson
added
T-lang
P-low
labels
Mar 9, 2017
This comment has been minimized.
This comment has been minimized.
|
The problem is not that |
durka commentedJun 19, 2015
This playpen contains a macro with two *-repeating arguments, plus a non-repeating argument sandwiched between them. It works fine when the repeating arguments are supplied, but when I try to leave out the first one, rustc claims the syntax is ambiguous. But I can't see why.