Rollup merge of #21358 - glacjay:patch-2, r=alexcrichton

This commit is contained in:
Barosl LEE 2015-01-21 02:16:49 +09:00
commit 33ea011574
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,7 @@ So `($x:ident -> (($e:expr)))`, though excessively fancy, would designate a macr
that could be invoked like: `my_macro!(i->(( 2+2 )))`.
To avoid ambiguity, macro invocation syntax must conform to the following rules:
* `expr` must be followed by `=>`, `,` or `;`.
* `ty` and `path` must be followed by `=>`, `,`, `:`, `=`, `>` or `as`.
* `pat` must be followed by `=>`, `,` or `=`.