Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird async/await error message around mutablility #51932

Closed
cramertj opened this issue Jun 30, 2018 · 1 comment
Closed

Weird async/await error message around mutablility #51932

cramertj opened this issue Jun 30, 2018 · 1 comment

Comments

@cramertj
Copy link
Member

@cramertj cramertj commented Jun 30, 2018

Attempting to mutate an argument to an async fn that was not marked mut results in this error message:
cannot borrow immutable captured outer variable in an `FnOnce` closure `sender` as mutable

This is obviously subpar 馃槅

@rylev
Copy link
Contributor

@rylev rylev commented Jun 11, 2021

This no longer seems to be the case. Please feel free to open with an reproducible piece of code if it's still an issue. 馃槉

@rylev rylev closed this Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants