Nonsequitur error message when trying to use Self in odd way #31168
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
This doesn't seem that unreasonable.
However, it doesn't work. That's not so bad, but the error message is very unintuitive.
I can see FooBar::Foo, it's right there. Telling me I can't use Self like this would be fine, but as it stands it's ludicrous.
The text was updated successfully, but these errors were encountered: