closure-returning-async-block
suggestion causes does not live long enough
error
#142145
Labels
A-async-await
Area: Async & Await
A-async-closures
`async || {}`
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
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.
Using the following flags
--force-warn closure-returning-async-block
this code:
caused the following diagnostics:
However after applying these diagnostics, the resulting code:
no longer compiled:
Version:
The text was updated successfully, but these errors were encountered: