-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Closed
Copy link
Labels
A-associated-itemsArea: Associated items (types, constants & functions)Area: Associated items (types, constants & functions)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Description
This trait causes an ICE when implemented and casted appropriately (from #23300):
trait Iterator {
type Item;
fn next(&mut self) -> Option<Self::Item>;
fn cloned(self) -> Cloned<Self> where
Self: Sized,
Self::Item: Deref,
<Self::Item as Deref>::Target: Clone,
{
Cloned { it: self }
}
}
I'll attach the full test in the PR, it's a pain for me to cut-and-paste it right now :)
Metadata
Metadata
Assignees
Labels
A-associated-itemsArea: Associated items (types, constants & functions)Area: Associated items (types, constants & functions)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️