-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Consider closure autoref #21699
Labels
A-closures
Area: Closures (`|…| { … }`)
Comments
Nominating for beta. |
cc @aturon |
(Assume that If you have a function |
Closing in favor of rust-lang/rfcs#756 |
@japaric I'll answer your question over in the RFC |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
We could have a
||
expression expand to&F
or&mut F
whereF : Fn()
(FnMut
, etc), and not justF
. This would make it easier to write code that accepted boxed closures:whereas today it is required to write:
This seems like a pretty small delta and might go a long way towards improving ergonomic impact of the new closure design.
The text was updated successfully, but these errors were encountered: