GAT: confusing diagnostic when missing where clause #84931
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-GATs
Area: Generic associated types (GATs)
D-incorrect
Diagnostics: A diagnostic that is giving misleading or incorrect information.
F-generic_associated_types
`#![feature(generic_associated_types)]` a.k.a. GATs
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: playground
The current output is:
I'm not really sure what the correct output should be but it should mention that I forgot the
where Self: 'a
bound on the trait impl like I have it written in this compiling code. It should also not suggest adding adding aT: 'a
bound because that bound is not writeable 😅The text was updated successfully, but these errors were encountered: