We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d1b9ae commit 1f1fcfbCopy full SHA for 1f1fcfb
src/items/functions.md
@@ -268,9 +268,13 @@ fn len(
268
Inert helper attributes used by procedural macro attributes applied to items are also
269
allowed but be careful to not include these inert attributes in your final `TokenStream`.
270
271
-```rust
272
-#[hi_i_am_a_proc_macro_attribute]
273
-fn foo_oof(#[hello_i_am_an_inert_attribute] arg: u8) {
+For example, the following code defines an inert `some_inert_attribute` attribute that
+is not formally defined anywhere and the `some_proc_macro_attribute` procedural macro is
+responsible for detecting its presence and removing it from the output token stream.
274
+
275
+```rust,ignore
276
+#[some_proc_macro_attribute]
277
+fn foo_oof(#[some_inert_attribute] arg: u8) {
278
}
279
```
280
0 commit comments