about summary refs log tree commit diff
path: root/src/test/compile-fail/borrowck-overloaded-index-autoderef.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/borrowck-overloaded-index-autoderef.rs')
-rw-r--r--src/test/compile-fail/borrowck-overloaded-index-autoderef.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/compile-fail/borrowck-overloaded-index-autoderef.rs b/src/test/compile-fail/borrowck-overloaded-index-autoderef.rs
index 416e67dac0c..9193a28511e 100644
--- a/src/test/compile-fail/borrowck-overloaded-index-autoderef.rs
+++ b/src/test/compile-fail/borrowck-overloaded-index-autoderef.rs
@@ -14,14 +14,14 @@
 use std::ops::{Index, IndexMut};
 
 struct Foo {
-    x: int,
-    y: int,
+    x: isize,
+    y: isize,
 }
 
 impl Index<String> for Foo {
-    type Output = int;
+    type Output = isize;
 
-    fn index<'a>(&'a self, z: &String) -> &'a int {
+    fn index<'a>(&'a self, z: &String) -> &'a isize {
         if z.as_slice() == "x" {
             &self.x
         } else {
@@ -31,9 +31,9 @@ impl Index<String> for Foo {
 }
 
 impl IndexMut<String> for Foo {
-    type Output = int;
+    type Output = isize;
 
-    fn index_mut<'a>(&'a mut self, z: &String) -> &'a mut int {
+    fn index_mut<'a>(&'a mut self, z: &String) -> &'a mut isize {
         if z.as_slice() == "x" {
             &mut self.x
         } else {