diff --git a/library/core/src/char/decode.rs b/library/core/src/char/decode.rs index dbfe251f2bb71..d76f983d87cce 100644 --- a/library/core/src/char/decode.rs +++ b/library/core/src/char/decode.rs @@ -2,6 +2,7 @@ use crate::error::Error; use crate::fmt; +use crate::iter::FusedIterator; /// An iterator that decodes UTF-16 encoded code points from an iterator of `u16`s. /// @@ -105,6 +106,9 @@ impl> Iterator for DecodeUtf16 { } } +#[stable(feature = "decode_utf16_fused_iterator", since = "CURRENT_RUSTC_VERSION")] +impl + FusedIterator> FusedIterator for DecodeUtf16 {} + impl DecodeUtf16Error { /// Returns the unpaired surrogate which caused this error. #[must_use]