Spurious 'type annotations needed' error when a struct definition has an error #75331
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-verbose
Diagnostics: Too much output caused by a single piece of incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code:
produces the following errors:
We should suppress the 'type annotations needed' message, since it will likely be resolved by fixing the type of
val
.The text was updated successfully, but these errors were encountered: