diff options
Diffstat (limited to 'crates/test_utils/src')
-rw-r--r-- | crates/test_utils/src/minicore.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/test_utils/src/minicore.rs b/crates/test_utils/src/minicore.rs index 011d460be..a861ff09c 100644 --- a/crates/test_utils/src/minicore.rs +++ b/crates/test_utils/src/minicore.rs | |||
@@ -227,6 +227,13 @@ pub mod iter { | |||
227 | #[lang = "into_iter"] | 227 | #[lang = "into_iter"] |
228 | fn into_iter(self) -> Self::IntoIter; | 228 | fn into_iter(self) -> Self::IntoIter; |
229 | } | 229 | } |
230 | impl<I: Iterator> IntoIterator for I { | ||
231 | type Item = I::Item; | ||
232 | type IntoIter = I; | ||
233 | fn into_iter(self) -> I { | ||
234 | self | ||
235 | } | ||
236 | } | ||
230 | } | 237 | } |
231 | pub use self::collect::IntoIterator; | 238 | pub use self::collect::IntoIterator; |
232 | pub use self::iterator::Iterator; | 239 | pub use self::iterator::Iterator; |