about summary refs log tree commit diff
path: root/src/test/compile-fail/method-missing-call.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-01-08 18:40:04 +0000
committerbors <bors@rust-lang.org>2015-01-08 18:40:04 +0000
commit00b112c45a604fa6f4b59af2a40c9deeadfdb7c6 (patch)
treeb7ebe956eeb308942c79bb1cd8ca1c4fc016fe83 /src/test/compile-fail/method-missing-call.rs
parenta8a210b57ef6b2f5f66b8798c80acfde70c9d2e7 (diff)
parent7541f82faba6b2839b5e640605d7caab6cc6ec4f (diff)
downloadrust-00b112c45a604fa6f4b59af2a40c9deeadfdb7c6.tar.gz
rust-00b112c45a604fa6f4b59af2a40c9deeadfdb7c6.zip
auto merge of #20760 : alexcrichton/rust/rollup, r=alexcrichton
Diffstat (limited to 'src/test/compile-fail/method-missing-call.rs')
-rw-r--r--src/test/compile-fail/method-missing-call.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/compile-fail/method-missing-call.rs b/src/test/compile-fail/method-missing-call.rs
index ddfa447f60e..899c1ef16a6 100644
--- a/src/test/compile-fail/method-missing-call.rs
+++ b/src/test/compile-fail/method-missing-call.rs
@@ -14,26 +14,26 @@
 
 
 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
 
     // Ensure the span is useful
-    let ys = &[1i,2,3,4,5,6,7];
+    let ys = &[1is,2,3,4,5,6,7];
     let a = ys.iter()
               .map(|x| x)
               .filter(|&&x| x == 1)