Compilation stop when referring to GAT of Self in where clause of trait implementation #109279
Labels
A-GATs
Area: Generic associated types (GATs)
C-bug
Category: This is a bug.
fixed-by-next-solver
Fixed by the next-generation trait solver, `-Znext-solver`.
I-hang
Issue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expect the code to compile or give, but instead the compilation comes to a halt (or gets stuck in an infinite loop) without any errors. This seems to occur in the current stable, beta, and nightly versions of the compiler.
If the
P: FnMut(&Self::Item<'_>) -> bool,
in thewhere
clause is swapped withP: FnMut(&I::Item<'_>) -> bool,
it compiles without any errors.The text was updated successfully, but these errors were encountered: