]> git.lizzy.rs Git - rust.git/blobdiff - src/libcollections/vec_map.rs
make `IndexMut` a super trait over `Index`
[rust.git] / src / libcollections / vec_map.rs
index 65592d138c72c63758fd6028db83c3e249529908..739b8d8ce19c24899abcd9d06f2a25d62d848623 100644 (file)
@@ -712,8 +712,6 @@ fn index<'a>(&'a self, i: &usize) -> &'a V {
 
 #[stable(feature = "rust1", since = "1.0.0")]
 impl<V> IndexMut<usize> for VecMap<V> {
-    type Output = V;
-
     #[inline]
     fn index_mut<'a>(&'a mut self, i: &usize) -> &'a mut V {
         self.get_mut(i).expect("key not present")