From ab8eb9f1019552ae997eb29d0f88292ec5980f00 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Wed, 6 Jun 2018 20:36:16 -0500 Subject: [PATCH] DOCS: Expand on the restrictions for macros. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index cbd1ad9..ff4aa7f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -333,6 +333,7 @@ //! #### Macros //! //! Macros look like functions but they are resolved at compile time and configurations don't execute so they never appear in output. +//! They can only reference the arguments in their arguments. They can't refer to bindings or other macros defined elsewhere. //! They are useful for constructing tuples of a certain shape or otherwise promoting data reuse. You define a macro with the `macro` //! keyword followed by the arguments in parentheses, a `=>`, and then a tuple. //!