Changing async function body causes caller to fail #116048
Labels
A-async-await
Area: Async & Await
A-auto-traits
Area: auto traits (e.g., `auto trait Send {}`)
AsyncAwait-Triaged
Async-await issues that have been triaged during a working group meeting.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Full reproducible example.
I expected to see this happen: The above code should compile.
Instead, this happened: The body of
send
causes a compile error inside its callerfoo
. This should not be possible as it would make changing the body of a method potentially a breaking change.I think this may be related to #110338 as removing the
Send
bound fromfoo
is enough to make the code compile.Compile Error
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: