]> git.lizzy.rs Git - rust.git/commitdiff
fix recursive call
authorJorge Aparicio <japaricious@gmail.com>
Mon, 26 Jan 2015 15:00:52 +0000 (10:00 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Fri, 30 Jan 2015 15:37:44 +0000 (10:37 -0500)
src/libcollections/binary_heap.rs

index fb4c326e10a1b5c8cd21771d1090bd0d9a636082..8c2163d7e14a6caa5457def193495217068060e9 100644 (file)
@@ -655,7 +655,7 @@ fn from_iter<Iter: Iterator<Item=T>>(iter: Iter) -> BinaryHeap<T> {
     }
 }
 
-impl<T> IntoIterator for BinaryHeap<T> {
+impl<T: Ord> IntoIterator for BinaryHeap<T> {
     type Iter = IntoIter<T>;
 
     fn into_iter(self) -> IntoIter<T> {