Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing Iterator bound #1

Closed
wants to merge 1 commit into from

Conversation

nikomatsakis
Copy link

The fixes from rust-lang/rust#27641 uncovered the fact that you are missing an Iterator bound here; otherwise, <T as Iterator>::Item doesn't make sense, since T: Iterator may not hold. In fact, now that a T: Iterator bound is given, you can just write T::Item instead.

@Emerentius
Copy link
Owner

The real bug here is that the trait is generic for no reason. What I really meant to write was Self::Item. Then it suffices that the trait extends Iterator.

Thanks for the notice!

@Emerentius
Copy link
Owner

Removed the offending generic bounds in 1e76a36.

@Emerentius Emerentius closed this Aug 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants