]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/mutable-class-fields-2.rs
Update compile fail tests to use isize.
[rust.git] / src / test / compile-fail / mutable-class-fields-2.rs
index 377c745acf3215df50425b091abcc429bbad6de6..3d8b095cb4eec89e3b00c80784cb49df8db86af4 100644 (file)
@@ -11,7 +11,7 @@
 struct cat {
   meows : uint,
 
-  how_hungry : int,
+  how_hungry : isize,
 }
 
 impl cat {
@@ -21,7 +21,7 @@ pub fn eat(&self) {
 
 }
 
-fn cat(in_x : uint, in_y : int) -> cat {
+fn cat(in_x : uint, in_y : isize) -> cat {
     cat {
         meows: in_x,
         how_hungry: in_y