about summary refs log tree commit diff
path: root/src/test/compile-fail/borrowck-while.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/borrowck-while.rs')
-rw-r--r--src/test/compile-fail/borrowck-while.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/borrowck-while.rs b/src/test/compile-fail/borrowck-while.rs
index b5703e56642..17eb19a44e6 100644
--- a/src/test/compile-fail/borrowck-while.rs
+++ b/src/test/compile-fail/borrowck-while.rs
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-fn f() -> int {
-    let mut x: int;
+fn f() -> isize {
+    let mut x: isize;
     while 1i == 1 { x = 10; }
     return x; //~ ERROR use of possibly uninitialized variable: `x`
 }