-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Ambiguous import not detected #97584
Comments
This fails to compile (after adapting to 2015 edition) on 1.14 and compiles on 1.15 and later. 1.15 made changes to the name resolution rules as described in RFC 1560. The relevant part seems to be:
Attempting to lookup @rustbot label A-resolve regression-from-stable-to-stable (Ancient regression, I know, but this issue should probably have a priority assigned anyway) |
Assigning priority as discussed in the Zulip thread of the Prioritization Working Group. @rustbot label -I-prioritize +P-medium |
I think this is a duplicate of #47525. |
@SNCPlay42 would you prefer to close this in favor of #47525 (and working on that one instead)? |
I think you're right. I'm ok with closing this issue then. Just note that the linked issue has different tags ( |
agreed, will update #47525 accordingly. Thanks! |
Closing this in favor of #47525 |
I tried this code (playground):
I expected to see this happen: an error like
error[E0659]: SOME_VALUE is ambiguous
Instead, this happened: the code compiles and runs to completion.
If you put the
use a::*
after themod a
, the expected error is thrown.Meta
This happens both on stable and nightly.
The text was updated successfully, but these errors were encountered: