Evaluating trait requirements with higher-rank trait bounds overflows #106512
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-higher-ranked
Area: Higher-ranked things (e.g., lifetimes, types, trait bounds aka HRTBs)
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
I am trying to implement a trait for types
T
such that&T
is convertible into an iterator:The rationale behind this is to be able to call
scan
on objects without consuming them.The compiler fails here, though, on both the stable 1.66.0 and the nightly versions:
I am aware of a similar issue #37748.
The text was updated successfully, but these errors were encountered: