Compiler Suggests Cloning an async
Block
#121547
Labels
A-borrow-checker
Area: The borrow checker
A-diagnostics
Area: Messages for errors, warnings, and lints
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
// https://github.com/HTGAzureX1212/HarTex/blob/491fe72da9042d5a5c7f61d0d5cdaf6e9b112057/discord-frontend/hartex-discord-leader/src/kafka.rs#L79-L120
Current output
Desired output
Rationale and extra context
I expect that the
.clone()
invocation to be added for the value that is moved, but for some reason it is doing it for the entireasync
closure.Other cases
No response
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: