mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 11:48:30 +00:00
Unstably constify impl IntoIterator for I: ~const Iterator
This commit is contained in:
parent
984204814e
commit
91eda96e38
@ -267,8 +267,9 @@ pub trait IntoIterator {
|
|||||||
fn into_iter(self) -> Self::IntoIter;
|
fn into_iter(self) -> Self::IntoIter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[rustc_const_unstable(feature = "const_intoiterator_identity", issue = "90603")]
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
impl<I: Iterator> IntoIterator for I {
|
impl<I: ~const Iterator> const IntoIterator for I {
|
||||||
type Item = I::Item;
|
type Item = I::Item;
|
||||||
type IntoIter = I;
|
type IntoIter = I;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user