-
Notifications
You must be signed in to change notification settings - Fork 271
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
Coercions section: some coercions are missing #237
Comments
Also coercion from unnameable-function-type to fn pointer is not covered. |
@MikailBag could you pls provide an example? I don't quite get what exactly the coercion is about.. |
This code shows that |
Ok now I got it for real :) Yeah, I guess it is worth mentioning that "function items" are implicitly coercible to function pointers, as RFC 0401 states. |
This could go to the reference as per #230 (comment). |
Currently, the Coercions (src/coercions.md) section doesn't mention the accepted and implemented (and stabilized) RFC Allow coercing non-capturing closures to function pointers.
Could it be that more coercions have been forgotten? :) I can't think of any right now, but I could have also forgotten something xD
TODO
The text was updated successfully, but these errors were encountered: