Clarify that function items defined by struct
and such are constructors for these types
#106516
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-papercut
Diagnostics: An error or lint that needs small tweaks.
Noticed this while reviewing. Code as such:
results in the following diagnostic:
it isn’t particularly obvious what is the relation between
struct
and a function definition. Instead the span could say something like:or somesuch.
The text was updated successfully, but these errors were encountered: