]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/borrowck-lend-flow.rs
Update compile fail tests to use isize.
[rust.git] / src / test / compile-fail / borrowck-lend-flow.rs
index d5419b0585111121f22652816b431d8cdf2f43ea..177976c15f0f46831762f717273b6f699c3227fd 100644 (file)
 
 #![feature(box_syntax)]
 
-fn borrow(_v: &int) {}
-fn borrow_mut(_v: &mut int) {}
+fn borrow(_v: &isize) {}
+fn borrow_mut(_v: &mut isize) {}
 fn cond() -> bool { panic!() }
 fn for_func<F>(_f: F) where F: FnOnce() -> bool { panic!() }
 fn produce<T>() -> T { panic!(); }
 
-fn inc(v: &mut Box<int>) {
+fn inc(v: &mut Box<isize>) {
     *v = box() (**v + 1);
 }