about summary refs log tree commit diff
path: root/library/core/src/array
diff options
context:
space:
mode:
authorBoxy <rust@boxyuwu.dev>2025-08-06 13:51:50 +0100
committerBoxy <rust@boxyuwu.dev>2025-08-06 16:55:50 +0100
commit7bc34622f037fedf3cf15c4a6beea1b40494cb2f (patch)
treecef0c0a6a0bb035a176c63b6ac53e5b335cd6390 /library/core/src/array
parent351e4bd1066a9d89b4d9f06c628ba0733c1850b5 (diff)
downloadrust-7bc34622f037fedf3cf15c4a6beea1b40494cb2f.tar.gz
rust-7bc34622f037fedf3cf15c4a6beea1b40494cb2f.zip
tidy
Diffstat (limited to 'library/core/src/array')
-rw-r--r--library/core/src/array/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/array/mod.rs b/library/core/src/array/mod.rs
index 1c23218552a..b3a498570f9 100644
--- a/library/core/src/array/mod.rs
+++ b/library/core/src/array/mod.rs
@@ -378,7 +378,7 @@ impl<'a, T, const N: usize> IntoIterator for &'a mut [T; N] {
 #[rustc_const_unstable(feature = "const_index", issue = "143775")]
 impl<T, I, const N: usize> const Index<I> for [T; N]
 where
-    [T]: ~const Index<I>,
+    [T]: [const] Index<I>,
 {
     type Output = <[T] as Index<I>>::Output;
 
@@ -392,7 +392,7 @@ where
 #[rustc_const_unstable(feature = "const_index", issue = "143775")]
 impl<T, I, const N: usize> const IndexMut<I> for [T; N]
 where
-    [T]: ~const IndexMut<I>,
+    [T]: [const] IndexMut<I>,
 {
     #[inline]
     fn index_mut(&mut self, index: I) -> &mut Self::Output {