Cycle error when combining RPITIT, generic bounds equality, and lifetimes #122019
Labels
C-bug
Category: This is a bug.
F-return_position_impl_trait_in_trait
`#![feature(return_position_impl_trait_in_trait)]`
I-cycle
Issue: A query cycle occurred while none was expected
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Minimal example (playground):
outputs
In the example, the implementation is irrelevant. The definition itself is the cause for error. Removing either the lifetime or the
Assoc = Infallible
results in successful compilation as expected.I don't understand why it's causing a cycle error, but intuitively I don't see why it should be. Introducing an
InfallibleFoo
trait with a blanket implementation is a possible workaround and what I'll be doing while the issue exists.The text was updated successfully, but these errors were encountered: