-
Notifications
You must be signed in to change notification settings - Fork 13k
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
async-block diagnostics do not suggest async move when it may be needed #66107
Comments
The error is correct, so what we are looking for here is a diagnostic improvement. The problem is that To fix the error, you need The situation is exactly analogous to closures and move closures. Note that in the analogous closure example (playground), we give a different error, complete with a suggestion:
It seems like we should adapt the |
Marking this as OnDeck since it seems like this might be a common mistake, and I think the fix should be relatively straightforward. |
Ah thanks @nikomatsakis this makes sense. |
@rustbot claim |
Ping from triage. @gilescope are you working on this? |
Ping. @gilescope are you interested in continuing to work on this, or should I un-assign? |
@rustbot claim I'm going to "claim" this issue, but only to write mentoring instructions! If anybody is interested in taking a crack at it, I'd be happy to help. |
Sorry - if anyone else wants it that’s cool. I seem to have fingers in quite a few pies at the moment. Sent with GitHawk |
@rustbot claim |
@gizmondo thanks!! |
(playground)
This issue has been assigned to @gizmondo via this comment.
The text was updated successfully, but these errors were encountered: