]> git.lizzy.rs Git - rust.git/commit
RangeFull for-loop iteration fails because of IntoIterator
authorMatthew Piziak <matthew.piziak@gmail.com>
Tue, 16 Aug 2016 10:54:45 +0000 (06:54 -0400)
committerMatthew Piziak <matthew.piziak@gmail.com>
Tue, 16 Aug 2016 10:54:45 +0000 (06:54 -0400)
commitc186da706dda6ddaa4df20691702249c4ef0d2dc
tree42794cc5c946a47eb4d9aa2b5f60c3b06bdac130
parent377ae44cf276599a5b7a21e545d83372067db754
RangeFull for-loop iteration fails because of IntoIterator

Saying that "[for-loop iteration] fails because .. has no IntoIterator
impl" is more direct than saying "...no Iterator impl" because for loops
sugar into IntoIterator invocations. It just happens that the other
Range* operators implement Iterator and rely on the fact that
`IntoIterator` is implemented for `T: Iterator`.
src/libcore/ops.rs