-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Allow parameter types to be omitted from closure expressions #2093
Copy link
Copy link
Closed
Labels
A-grammarArea: The grammar of RustArea: The grammar of RustA-type-systemArea: Type systemArea: Type systemC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Metadata
Metadata
Assignees
Labels
A-grammarArea: The grammar of RustArea: The grammar of RustA-type-systemArea: Type systemArea: Type systemC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
We should allow you to write
fn&(x, y)and infer the types forxandyjust as we now infer the types for{|x, y|...}. Similarly we should infer the return type too---not sure whether we should require something likefn&(x, y) -> { ... }in that case, though.