Compiler error "implementation of Send is not general enough" when using static lifetime reference with async closure #138494
Labels
A-async-closures
`async || {}`
A-lifetimes
Area: Lifetimes / regions
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen:
I expect the commented code to compile without errors
Instead, this happened:
The commented code produces a compile error: implementation of
Send
is not general enough.Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: