Unhelpful error message for async method on invalid type #72590
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-bug
Category: This is a bug.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
Playground
I expected to see this happen: resolution error reported for
Nonexistent
type.Instead, this happened: In addition to the resolution error, the compiler emitted errors complaining that it couldn't determine the size of
Foo
. That error is also emitted twice. These errors should be silent, since the true error is thatFoo
isn't fully formed.Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: