Inherent associated types are incorrectly substituted #107468
Labels
C-bug
Category: This is a bug.
F-inherent_associated_types
`#![feature(inherent_associated_types)]`
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code should compile since for
Subj<(i32,)>
one hasT == i32
and thusSubj::Un == i32
. However, the current implementation incorrectly substitutesT
with(i32,)
leading to a compile error after encountering the let-statement.For comparison, the analogous program involving inherent associated functions successfully compiles:
@rustbot label T-compiler requires-nightly F-inherent_associated_types
@rustbot claim
The text was updated successfully, but these errors were encountered: