Inconsistent path resolution between 'use' and expressions in 2018 #57853
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name resolution
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I don't know the details of "path clarity" and "uniform paths", but I would expect that path resolution in use statements and expressions would work the same. And they do in all situations I've tested except for these two involving external crates:
The two use statements are ambiguous in 2018, but the two expressions resolve to the local module. I'd expect the expressions to be ambiguous.
Tested in 1.32 and whatever nightly is on playground today.
Playground
The text was updated successfully, but these errors were encountered: