about summary refs log tree commit diff
path: root/src/test/run-pass/operator-multidispatch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/operator-multidispatch.rs')
-rw-r--r--src/test/run-pass/operator-multidispatch.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/run-pass/operator-multidispatch.rs b/src/test/run-pass/operator-multidispatch.rs
index 4ce6fcee8c7..af7deef11b6 100644
--- a/src/test/run-pass/operator-multidispatch.rs
+++ b/src/test/run-pass/operator-multidispatch.rs
@@ -15,8 +15,8 @@ use std::ops;
 
 #[derive(Debug,PartialEq,Eq)]
 struct Point {
-    x: int,
-    y: int
+    x: isize,
+    y: isize
 }
 
 impl ops::Add for Point {
@@ -27,10 +27,10 @@ impl ops::Add for Point {
     }
 }
 
-impl ops::Add<int> for Point {
+impl ops::Add<isize> for Point {
     type Output = Point;
 
-    fn add(self, other: int) -> Point {
+    fn add(self, other: isize) -> Point {
         Point {x: self.x + other,
                y: self.y + other}
     }