about summary refs log tree commit diff
path: root/src/test/run-pass/class-typarams.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/class-typarams.rs')
-rw-r--r--src/test/run-pass/class-typarams.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/run-pass/class-typarams.rs b/src/test/run-pass/class-typarams.rs
index 6cd8f4c658c..cc9a118ba19 100644
--- a/src/test/run-pass/class-typarams.rs
+++ b/src/test/run-pass/class-typarams.rs
@@ -13,17 +13,17 @@
 use std::marker::PhantomData;
 
 struct cat<U> {
-    meows : uint,
-    how_hungry : int,
+    meows : usize,
+    how_hungry : isize,
     m: PhantomData<U>
 }
 
 impl<U> cat<U> {
     pub fn speak(&mut self) { self.meows += 1; }
-    pub fn meow_count(&mut self) -> uint { self.meows }
+    pub fn meow_count(&mut self) -> usize { self.meows }
 }
 
-fn cat<U>(in_x : uint, in_y : int) -> cat<U> {
+fn cat<U>(in_x : usize, in_y : isize) -> cat<U> {
     cat {
         meows: in_x,
         how_hungry: in_y,
@@ -33,6 +33,6 @@ fn cat<U>(in_x : uint, in_y : int) -> cat<U> {
 
 
 pub fn main() {
-  let _nyan : cat<int> = cat::<int>(52, 99);
+  let _nyan : cat<isize> = cat::<isize>(52, 99);
   //  let mut kitty = cat(1000, 2);
 }