-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Foo is ambiguous" only when deriving Debug #62769
Comments
When I expand the code using |
First, variants exist in type namespace (and their constructors exist in value namespace). Beside that, it's rather a conservative error than an outright bug. (We actually do it for single imports though, otherwise |
Triage: this error is a bit more descriptive today:
|
playpen
This may be related to #62768.
Given this code:
The compiler errors, saying that the
Foo
inuse Foo::*
may refer both to the enum (type-namespace)Foo
and the yet-to-be-imported variant (value-namespace)Foo::Foo
:However, if I remove the
#[derive(Debug)]
, then the code compiles just fine as expected (playpen).The text was updated successfully, but these errors were encountered: