about summary refs log tree commit diff
path: root/library/core/src/ops
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-10-11 19:11:56 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-12-20 15:01:37 +0000
commitc787de3bbd307cccbfaeb56421ad7ad898330676 (patch)
treee5447ab13cd9dea36a47d516af08f5111eb0393a /library/core/src/ops
parent872a6da935afa11c9b836d685efd591ca7a64481 (diff)
downloadrust-c787de3bbd307cccbfaeb56421ad7ad898330676.tar.gz
rust-c787de3bbd307cccbfaeb56421ad7ad898330676.zip
Fix some `~const` usage in libcore
Diffstat (limited to 'library/core/src/ops')
-rw-r--r--library/core/src/ops/index.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/ops/index.rs b/library/core/src/ops/index.rs
index 5e3dc48b6ca..228efb0bc0a 100644
--- a/library/core/src/ops/index.rs
+++ b/library/core/src/ops/index.rs
@@ -165,7 +165,7 @@ see chapter in The Book <https://doc.rust-lang.org/book/ch08-02-strings.html#ind
 #[doc(alias = "]")]
 #[doc(alias = "[]")]
 #[const_trait]
-pub trait IndexMut<Idx: ?Sized>: Index<Idx> {
+pub trait IndexMut<Idx: ?Sized>: ~const Index<Idx> {
     /// Performs the mutable indexing (`container[index]`) operation.
     ///
     /// # Panics