Weird async/await error message around mutablility #51932
Labels
A-async-await
Area: Async & Await
A-borrow-checker
Area: The borrow checker
A-diagnostics
Area: Messages for errors, warnings, and lints
AsyncAwait-Triaged
Async-await issues that have been triaged during a working group meeting.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Attempting to mutate an argument to an
async fn
that was not markedmut
results in this error message:cannot borrow immutable captured outer variable in an `FnOnce` closure `sender` as mutable
This is obviously subpar 😆
The text was updated successfully, but these errors were encountered: