We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 003382e commit a6b130eCopy full SHA for a6b130e
src/libcore/ops/index.rs
@@ -58,7 +58,7 @@
58
#[doc(alias = "]")]
59
#[doc(alias = "[")]
60
#[doc(alias = "[]")]
61
-pub trait Index<Idx: ?Sized> {
+pub trait Index<Idx> {
62
/// The returned type after indexing.
63
#[stable(feature = "rust1", since = "1.0.0")]
64
type Output: ?Sized;
@@ -163,7 +163,7 @@ see chapter in The Book <https://doc.rust-lang.org/book/ch08-02-strings.html#ind
163
164
165
166
-pub trait IndexMut<Idx: ?Sized>: Index<Idx> {
+pub trait IndexMut<Idx>: Index<Idx> {
167
/// Performs the mutable indexing (`container[index]`) operation.
168
169
fn index_mut(&mut self, index: Idx) -> &mut Self::Output;
0 commit comments