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