]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/method-missing-call.rs
Update compile fail tests to use isize.
[rust.git] / src / test / compile-fail / method-missing-call.rs
index ddfa447f60e22cdfee1cfb252b57d5a43fcd867b..83418cbc104cb9f46bdd52468ed0b42c48edc836 100644 (file)
 
 
 struct Point {
-    x: int,
-    y: int
+    x: isize,
+    y: isize
 }
 impl Point {
     fn new() -> Point {
         Point{x:0, y:0}
     }
-    fn get_x(&self) -> int {
+    fn get_x(&self) -> isize {
         self.x
     }
 }
 
 fn main() {
     let point: Point = Point::new();
-    let px: int =  point
+    let px: isize =  point
                         .get_x;//~ ERROR attempted to take value of method `get_x` on type `Point`
                         //~^ HELP maybe a `()` to call it is missing