Error messages for where impl Trait
is allowed do not account for return-position-impl-trait-in-trait (RPITIT)
#119629
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
Code
Current output
Desired output
I believe this message should mention the newly-stabilized possibilities of RPITIT. For example, this is not a function or an inherent method:
Rationale and extra context
No response
Other cases
My gut tells me that there are other errors with the same now-incorrect subset of locations.
Anything else?
Seen in nightly (2024-01-04 f688dd6)
The text was updated successfully, but these errors were encountered: