Name resolution does not work if associated type and constant use the same name #44247
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Consider this program:
I believe it should compile OK, but currently (Rust 1.20) it fails to compile with a wrong error message:
Error
For comparison, the following program builds just fine:
The text was updated successfully, but these errors were encountered: