diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-10-11 19:11:56 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-12-20 15:01:37 +0000 |
| commit | c787de3bbd307cccbfaeb56421ad7ad898330676 (patch) | |
| tree | e5447ab13cd9dea36a47d516af08f5111eb0393a /library/core/src/ops | |
| parent | 872a6da935afa11c9b836d685efd591ca7a64481 (diff) | |
| download | rust-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.rs | 2 |
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 |
