-
Notifications
You must be signed in to change notification settings - Fork 14
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
Compilation error, failed inference on closure #10
Comments
Temporary workaround shown in https://github.com/Verdagon/RustFearlessStructuredConcurrency/blob/1734c0a7a2fe779390941a3bfe90e33efc698dfa/src/main.rs TL;DR: instead of:
This does require a change to async-scoped source code though, to make |
Exposing this module is a temporary workaround for rmanoka#10
The inference failure is intended as |
That solved it! I'm not sure how I missed that, it felt like I'd tried everything at the time. Thank you for your help! |
If I compile the example program, the compiler fails to infer the closure's type:
(reproduced in https://github.com/Verdagon/RustFearlessStructuredConcurrency/blob/33019c43cd95d5ad2152590263739549d38ab869/src/main.rs)
The text was updated successfully, but these errors were encountered: