Ambiguous name after glob import is not an error #47525
Labels
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
C-bug
Category: This is a bug.
P-medium
Medium priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
User
mattscode
from irc reported that the following code compiles, and seems to pick a favourite between identical names. We agree we expect this to be a compile error:(playground link)
It compiles, and when run it outputs:
Note that
x()
is not an error and picksb::x
as the preferredx
. Callinga::x()
is an ambiguity error, as expected.This bug exists in at least:
The text was updated successfully, but these errors were encountered: