Skip to content

document where keyword #21859

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

Closed
ghost opened this issue Feb 2, 2015 · 2 comments · Fixed by #22123
Closed

document where keyword #21859

ghost opened this issue Feb 2, 2015 · 2 comments · Fixed by #22123

Comments

@ghost
Copy link

ghost commented Feb 2, 2015

Inspired by a short dialog on irc:

20:04 kraemahz How do I tell rust the type of an iterator? <T: Iterator<usize>>(iter: T) and <T: Iterator>(iter: T<usize>) don't work
20:05 Mutabah kraemahz: Iterator<Item=usize>
20:05 kraemahz thanks
20:06 Yurume which is short for fn foo<T: Iterator>(iter: T) where <T as Iterator>::Item == usize afaik.

The where keyword is not mentioned in Iterators, Generics, or Traits docs despite its use in base types like Iterator.

@steveklabnik
Copy link
Member

Yup, this is on my list. Thanks for the issue.

@jroesch
Copy link
Member

jroesch commented Feb 11, 2015

cc me

steveklabnik added a commit to steveklabnik/rust that referenced this issue Feb 16, 2015
alexcrichton added a commit to alexcrichton/rust that referenced this issue Feb 17, 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 a pull request may close this issue.

2 participants