Clarify that macros are expr-positioned.

This commit is contained in:
Paul Stansifer 2012-08-23 15:06:03 -07:00
parent e9622f09aa
commit 0698fc6650

View File

@ -2411,6 +2411,11 @@ The right-hand side of the `=>` follows the same rules as the left-hand side,
except that `$` need only be followed by the name of the syntactic fragment
to transcribe.
The right-hand side must be surrounded by delimiters of some kind, and must be
an expression; currently, user-defined macros can only be invoked in
expression position (even though `macro_rules!` itself can be in item
position).
## Multiplicity
### Invocation