Closed
Description
For example
#[stable(feature = "rust1", since = "1.0.0")]
pub struct Peekable<T, I> where I: Iterator<Item=T> {
iter: I,
peeked: Option<T>,
}
Here the T type parameter is completely useless as it's always going to be equal to I::Item, and this is present in nearly every iterator adaptor, all which are marked stable.
Metadata
Metadata
Assignees
Labels
No labels