diff options
| -rw-r--r-- | library/core/src/option.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/core/src/option.rs b/library/core/src/option.rs index 212e4f02154..56787615e28 100644 --- a/library/core/src/option.rs +++ b/library/core/src/option.rs @@ -1338,9 +1338,8 @@ impl<T> Option<T> { /// assert_eq!(x.iter().next(), None); /// ``` #[inline] - #[rustc_const_unstable(feature = "const_option", issue = "67441")] #[stable(feature = "rust1", since = "1.0.0")] - pub const fn iter(&self) -> Iter<'_, T> { + pub fn iter(&self) -> Iter<'_, T> { Iter { inner: Item { opt: self.as_ref() } } } |
