File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ Attributes may be applied to many things in the language:
50
50
* [ Generic lifetime or type parameter] [ generics ] accept outer attributes.
51
51
* Expressions accept outer attributes in limited situations, see [ Expression
52
52
Attributes] for details.
53
+ * [ Function] [ functions ] parameters accept outer attributes.
53
54
54
55
Some examples of attributes:
55
56
Original file line number Diff line number Diff line change 17
17
>   ;  ; _ FunctionParam_ (` , ` _ FunctionParam_ )<sup >\* </sup > ` , ` <sup >?</sup >
18
18
>
19
19
> _ FunctionParam_ :\
20
- >   ;  ; [ _ Pattern_ ] ` : ` [ _ Type_ ]
20
+ >   ;  ; [ _ OuterAttribute _ ] < sup > \* </ sup >\ [ _ Pattern_ ] ` : ` [ _ Type_ ]
21
21
>
22
22
> _ FunctionReturnType_ :\
23
23
>   ;  ; ` -> ` [ _ Type_ ]
@@ -282,3 +282,4 @@ attributes macros.
282
282
[ `link_section` ] : ../abi.md#the-link_section-attribute
283
283
[ `no_mangle` ] : ../abi.md#the-no_mangle-attribute
284
284
[ external_block_abi ] : external-blocks.md#abi
285
+ [ _OuterAttribute_ ] : ../attributes.md
You can’t perform that action at this time.
0 commit comments