confusing diagnostic for incorrect type parameter on BoxFuture #72117
Labels
A-async-await
Area: Async & Await
A-diagnostics
Area: Messages for errors, warnings, and lints
AsyncAwait-Triaged
Async-await issues that have been triaged during a working group meeting.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
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 wish the compiler had suggested that I should change
f: Option<BoxFuture<'a, F>>
tof: Option<BoxFuture<'a, F::Output>>
,Instead, this happened:
Meta
Rust compiler version (stable version on play.rust-lang.org).
Playground link
Backtrace
N/A (compile error)
The text was updated successfully, but these errors were encountered: