about summary refs log tree commit diff
path: root/src/test/compile-fail/noncopyable-class.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/noncopyable-class.rs')
-rw-r--r--src/test/compile-fail/noncopyable-class.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/compile-fail/noncopyable-class.rs b/src/test/compile-fail/noncopyable-class.rs
index ec8369d6736..029b8485993 100644
--- a/src/test/compile-fail/noncopyable-class.rs
+++ b/src/test/compile-fail/noncopyable-class.rs
@@ -13,14 +13,14 @@
 
 #[derive(Show)]
 struct bar {
-  x: int,
+  x: isize,
 }
 
 impl Drop for bar {
     fn drop(&mut self) {}
 }
 
-fn bar(x:int) -> bar {
+fn bar(x:isize) -> bar {
     bar {
         x: x
     }
@@ -28,11 +28,11 @@ fn bar(x:int) -> bar {
 
 #[derive(Show)]
 struct foo {
-  i: int,
+  i: isize,
   j: bar,
 }
 
-fn foo(i:int) -> foo {
+fn foo(i:isize) -> foo {
     foo {
         i: i,
         j: bar(5)