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.
1 parent 28e9756 commit 2f8f5f0Copy full SHA for 2f8f5f0
library/core/src/char/methods.rs
@@ -673,6 +673,7 @@ impl char {
673
/// 'ß'.encode_utf8(&mut b);
674
/// ```
675
#[stable(feature = "unicode_encode_char", since = "1.15.0")]
676
+ #[rustc_const_stable(feature = "const_char_encode_utf8", issue = "130512")]
677
#[inline]
678
pub const fn encode_utf8(self, dst: &mut [u8]) -> &mut str {
679
// SAFETY: `char` is not a surrogate, so this is valid UTF-8.
0 commit comments