You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the doc for the keyword in it's stated that "The expression immediately following in must implement the Iterator trait."
This is not completly right since it can be followed by anything that implements the IntoIterator trait.
The doc for the keyword for instead correctly cites the IntoIterator trait, althouth it could be improved since it just appears out of thin air when the desugared version is showed, without any prior mentioning.