-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Consider closure autoref #21699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
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: