Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions first-edition/src/macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ which syntactic form it matches.
`{ log(error, "hi"); return 12; }`.
* `item`: an [item][item]. Examples: `fn foo() { }`; `struct Bar;`.
* `meta`: a "meta item", as found in attributes. Example: `cfg(target_os = "windows")`.
* `lifetime`: a lifetime. Examples: `'static`, `'a`.
* `tt`: a single token tree.

There are additional rules regarding the next token after a metavariable:
Expand Down