Error reporting when using enum variants of Self is not making any sense #48743
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Take the following code:
This is known to not work (I don't know if it's on file or not, but will report separately), but the error reported is really not helping developers:
Not only is it reporting the right type, but it's also pointing to the definition where the variant is defined.
This actually got worse in 1.24. 1.23 and older versions only reported the following, which was already bad, but the new message is significantly worse:
The text was updated successfully, but these errors were encountered: