@@ -106,12 +106,10 @@ fn main() {
106
106
}
107
107
```
108
108
109
- Function-like procedural macros may expand to a [ type] or any number of
110
- [ items] , including [ ` macro_rules ` ] definitions. They may be invoked in a [ type
111
- expression] , [ item] position (except as a [ statement] ), including items in
112
- [ ` extern ` blocks] , inherent and trait [ implementations] , and [ trait
113
- definitions] . They cannot be used in a [ statement] , [ expression] , or
114
- [ pattern] .
109
+ Function-like procedural macros may be invoked in any macro invocation
110
+ position, which includes [ statements] , [ expressions] , [ patterns] , [ type
111
+ expressions] , [ item] positions, including items in [ ` extern ` blocks] , inherent
112
+ and trait [ implementations] , and [ trait definitions] .
115
113
116
114
### Derive macros
117
115
@@ -290,18 +288,18 @@ fn invoke4() {}
290
288
[ crate type ] : linkage.md
291
289
[ derive macro helper attributes ] : #derive-macro-helper-attributes
292
290
[ enum ] : items/enumerations.md
293
- [ expression ] : expressions.md
291
+ [ expressions ] : expressions.md
294
292
[ function ] : items/functions.md
295
293
[ implementations ] : items/implementations.md
296
294
[ inert ] : attributes.md#active-and-inert-attributes
297
295
[ item ] : items.md
298
296
[ items ] : items.md
299
297
[ module ] : items/modules.md
300
- [ pattern ] : patterns.md
298
+ [ patterns ] : patterns.md
301
299
[ public ] : visibility-and-privacy.md
302
- [ statement ] : statements.md
300
+ [ statements ] : statements.md
303
301
[ struct ] : items/structs.md
304
302
[ trait definitions ] : items/traits.md
305
- [ type expression ] : types.md#type-expressions
303
+ [ type expressions ] : types.md#type-expressions
306
304
[ type ] : types.md
307
305
[ union ] : items/unions.md
0 commit comments