-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specifically
Description
This doesn't seem that unreasonable.
enum FooBar {
Foo,
Bar
}
impl Default for FooBar {
fn default() -> Self {
Self::Foo
}
}However, it doesn't work. That's not so bad, but the error message is very unintuitive.
error: no associated item named `Foo` found for type 'hallo::salut::sunt_eu::un_haiduc::FooBar` in the current scope
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specifically
Type
Fields
Give feedbackNo fields configured for issues without a type.