diff --git a/src/procedural-macros.md b/src/procedural-macros.md index 00fd21c216..4de4d66386 100644 --- a/src/procedural-macros.md +++ b/src/procedural-macros.md @@ -317,6 +317,9 @@ Attribute macros can only be used on: - Inherent and trait [implementations] - [Trait definitions] +r[macro.proc.attribute.inner] +Attribute macros cannot be used as an [inner attribute]. + r[macro.proc.attribute.behavior] The first [`TokenStream`] parameter is the delimited token tree following the attribute's name but not including the outer delimiters. If the applied attribute contains only the attribute name or the attribute name followed by empty delimiters, the [`TokenStream`] is empty. @@ -394,6 +397,7 @@ Note that neither declarative nor procedural macros support doc comment tokens ( [function]: items/functions.md [implementations]: items/implementations.md [inert]: attributes.md#active-and-inert-attributes +[inner attribute]: attributes.inner [item]: items.md [items]: items.md [macro namespace]: names/namespaces.md