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
Copy file name to clipboardExpand all lines: text/2540-formal-function-parameter-attributes.md
+32-4Lines changed: 32 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,8 @@ Having attributes on formal function parameters allows for certain different use
16
16
## Example: Handling of unused parameter
17
17
18
18
In today's Rust it is possible to prefix the name of an identifier to silence the compiler about it being unused.
19
-
With attributes in formal function parameter position we could have an attribute like `#[unused]` that explicitely states this for a given parameter.
19
+
With attributes in formal function parameter position we could hypothetically have an attribute like `#[unused]` that explicitely states this for a given parameter.
20
+
Note that `#[unused]` is not part of this proposal but merely a simple usecase.
0 commit comments