Incorrect/misleading error messages after syntax errors in struct initializers #52496
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
The first struct reports missing fields,
bar
andbaz
due to the syntax error:The second struct reports a missing field
baz
, and suggests an obviously wrong fix for a type mismatch error:The text was updated successfully, but these errors were encountered: