From 0698fc665033f905470a4b98ea82bdb4f8342352 Mon Sep 17 00:00:00 2001 From: Paul Stansifer Date: Thu, 23 Aug 2012 15:06:03 -0700 Subject: [PATCH] Clarify that macros are expr-positioned. --- doc/tutorial.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/tutorial.md b/doc/tutorial.md index 60235b83474..6c89fed9dba 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -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