Namespacing inconsistency with type and const parameters #113090
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
C-bug
Category: This is a bug.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
I tried this code and it compiled:
Then I tried this code and it didn't compile:
Meta
rustc +nightly --version --verbose
:Backtrace
Explanation
This is an inconsistency in namespacing of type parameters and const parameters. When used as associated types/consts they can have overlapping names, but when used as generic types they cannot
The text was updated successfully, but these errors were encountered: