diff options
Diffstat (limited to 'src/test/compile-fail/borrowck-if-with-else.rs')
| -rw-r--r-- | src/test/compile-fail/borrowck-if-with-else.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/compile-fail/borrowck-if-with-else.rs b/src/test/compile-fail/borrowck-if-with-else.rs index e6d59062af2..c74edfd8d07 100644 --- a/src/test/compile-fail/borrowck-if-with-else.rs +++ b/src/test/compile-fail/borrowck-if-with-else.rs @@ -8,11 +8,11 @@ // 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 { + let x: isize; + if 1is > 2 { println!("whoops"); } else { x = 10; |
