-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Wildcard import fails to resolve if a derive is present #56593
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Looks like a legitimate bug. |
Assigning |
From #81887:
|
Bumping this, as it still seems to be an issue. Minimal example: |
I filed an issue as well and then someone referred me to this issue, I guess it's a dupe. I'm running into this issue as well, any movement on this? Seems like a bug to me, no? |
having the same issue, it's a major bug, 5 years without fix? |
The following snippet fails to compile with the error
[E0412]: cannot find type Foo in this scope
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=d954ef6f84f0d1df4e5c4791c7716da9
Expected result: code compiles without issues
I can get it to compile by doing one of those:
use super::*
on line 4#[derive(Debug)]
at line 7struct Foo
on line 1 toFoo2
#[derive(Debug)]
The same issue happens with other derives (Clone,Eq,etc.). Seems like
#[derive()]
is confused when an item with the same name is visible?The text was updated successfully, but these errors were encountered: