]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/overloaded-index-autoderef.rs
make `IndexMut` a super trait over `Index`
[rust.git] / src / test / run-pass / overloaded-index-autoderef.rs
index 637d2c94694455d84aa64eccca52791000e13061..d5ccf8cd2befb0f4f18e29fc0021ba49f4d814bf 100644 (file)
@@ -33,8 +33,6 @@ fn index(&self, z: &int) -> &int {
 }
 
 impl IndexMut<int> for Foo {
-    type Output = int;
-
     fn index_mut(&mut self, z: &int) -> &mut int {
         if *z == 0 {
             &mut self.x