-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
ClosureExpression::new asks for all three generic types #838
Comments
@zecakeh I don't think there is a simple way to figure out the return type of a RustClosure, it all happens at runtime |
The types of the |
No problem. Just wishful thinking :) |
This can be fixed now as we have bumped the minimum rust version to 1.63 |
A closure expression has to be declared like that:
One with no parameters must be declared like that:
It would be great if at most we only had to annotate the
ValueType
, like inchain_closure
. But if theclosure!
return type could be used for theValueType
, that would be even better.The text was updated successfully, but these errors were encountered: