dyn AsyncFn
generates many independent errors
#132713
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-trait-objects
Area: trait objects, vtable layout
D-verbose
Diagnostics: Too much output caused by a single piece of incorrect code.
F-async_closure
`#![feature(async_closure)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
The current error output spits out four related issues where only one is needed. Additionally, none provides quite the right context, and all reference implementation details of
AsyncFn
that users may not be concerned with.Rust Version
2024-11-05 nightly
The text was updated successfully, but these errors were encountered: