missing rust_2021_incompatible_closure_captures with async block boxed future thingy #88444
Labels
A-closures
Area: Closures (`|…| { … }`)
A-diagnostics
Area: Messages for errors, warnings, and lints
A-edition-2021
Area: The 2021 edition
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
With
feature
disabled, and the warning enabled, there is no warning issued. With the feature enabled, this fails with the error:I think it is missing a suggestion for
let _ = &connect
in the closure.Found in the 2021 crater run for https://crater-reports.s3.amazonaws.com/pr-87190-3/try%23a7a572ce3edd6d476191fbfe92c9c1986e009b34/reg/gremlin-cli-0.1.0/log.txt
cc @rust-lang/wg-rfc-2229
The text was updated successfully, but these errors were encountered: