Type alias can't access enum variants if the enum is a type parameter default #114736
Labels
A-inference
Area: Type inference
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
Given an enum and type alias like so:
I would expect
A::V
,A::<>::V
and possiblyA::<_>::V
to refer toE::V
.However, these all generate the same error message:
Note that specifying
T
explicitly (e.g.A::<E>::V
) works as expected.Meta
rustc --version --verbose
:I also got the same behavior on stable, beta and nightly in the playground.
The text was updated successfully, but these errors were encountered: