Suggestion to add the question mark operator creates invalid code for structs that use the shorthand syntax #118145
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
Code
Current output
Desired output
Rationale and extra context
No response
Other cases
No response
Anything else?
This appears to be a new diagnostic, as it appears in 1.75.0-beta.3 (2023-11-20 b66b795) but not in 1.74.0.
The text was updated successfully, but these errors were encountered: