Improve error message when using Self in impl enum #56104
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
Compiling above code give errors,
The error message is helpful (it indicates correct code,
MainError::IO
). However, the first line of message is confusing, and E0599 does not help much to understand why this code is not working.Can we improve error messages for such situations?
The text was updated successfully, but these errors were encountered: