]> git.lizzy.rs Git - rust.git/blobdiff - crates/test_utils/src/minicore.rs
internal: switch some tests to minicore
[rust.git] / crates / test_utils / src / minicore.rs
index 011d460beb5823dd1f945f6ca927ec922ace2899..a861ff09c94ac0c48aa3213630a3b4b2e093a3ad 100644 (file)
@@ -227,6 +227,13 @@ pub trait IntoIterator {
                 #[lang = "into_iter"]
                 fn into_iter(self) -> Self::IntoIter;
             }
+            impl<I: Iterator> IntoIterator for I {
+                type Item = I::Item;
+                type IntoIter = I;
+                fn into_iter(self) -> I {
+                    self
+                }
+            }
         }
         pub use self::collect::IntoIterator;
         pub use self::iterator::Iterator;