We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c558bf commit b4a5067Copy full SHA for b4a5067
core/src/array/mod.rs
@@ -577,7 +577,8 @@ impl<T, const N: usize> [T; N] {
577
/// Returns a mutable slice containing the entire array. Equivalent to
578
/// `&mut s[..]`.
579
#[stable(feature = "array_as_slice", since = "1.57.0")]
580
- pub fn as_mut_slice(&mut self) -> &mut [T] {
+ #[rustc_const_unstable(feature = "const_array_as_mut_slice", issue = "133333")]
581
+ pub const fn as_mut_slice(&mut self) -> &mut [T] {
582
self
583
}
584
0 commit comments