You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Function-like procedural macros may expand to a type or any number of items, including macro_rules definitions. They may be invoked in a type expression, item position (except as a statement), including items in extern blocks, inherent and trait implementations, and trait definitions. They cannot be used in a statement, expression, or pattern.
However, as of Rust 1.45, function-like procedural macros can be used in statement, expression, and pattern positions. (It was introduced in rust-lang/rust#68717.)
Activity
camelid commentedon Jul 28, 2020
Actually, it looks like the source in this repository for that section is up-to-date. Has it not been deployed?
camelid commentedon Jul 28, 2020
Didn't realize that the reference branches like the compiler :)