We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
impl IntoIterator for I: ~const Iterator
1 parent 9842048 commit 91eda96Copy full SHA for 91eda96
library/core/src/iter/traits/collect.rs
@@ -267,8 +267,9 @@ pub trait IntoIterator {
267
fn into_iter(self) -> Self::IntoIter;
268
}
269
270
+#[rustc_const_unstable(feature = "const_intoiterator_identity", issue = "90603")]
271
#[stable(feature = "rust1", since = "1.0.0")]
-impl<I: Iterator> IntoIterator for I {
272
+impl<I: ~const Iterator> const IntoIterator for I {
273
type Item = I::Item;
274
type IntoIter = I;
275
0 commit comments