File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 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:
5050* [ Generic lifetime or type parameter] [ generics ] accept outer attributes.
5151* Expressions accept outer attributes in limited situations, see [ Expression
5252 Attributes] for details.
53+ * [ Function] [ functions ] parameters accept outer attributes.
5354
5455Some examples of attributes:
5556
Original file line number Diff line number Diff line change 1717>   ;  ; _ FunctionParam_ (` , ` _ FunctionParam_ )<sup >\* </sup > ` , ` <sup >?</sup >
1818>
1919> _ FunctionParam_ :\
20- >   ;  ; [ _ Pattern_ ] ` : ` [ _ Type_ ]
20+ >   ;  ; [ _ OuterAttribute _ ] < sup > \* </ sup >\ [ _ Pattern_ ] ` : ` [ _ Type_ ]
2121>
2222> _ FunctionReturnType_ :\
2323>   ;  ; ` -> ` [ _ Type_ ]
@@ -282,3 +282,4 @@ attributes macros.
282282[ `link_section` ] : ../abi.md#the-link_section-attribute
283283[ `no_mangle` ] : ../abi.md#the-no_mangle-attribute
284284[ external_block_abi ] : external-blocks.md#abi
285+ [ _OuterAttribute_ ] : ../attributes.md
You can’t perform that action at this time.
0 commit comments