]> git.proxmox.com Git - rustc.git/blobdiff - src/test/run-pass/borrowck-borrow-from-expr-block.rs
Imported Upstream version 1.0.0~beta
[rustc.git] / src / test / run-pass / borrowck-borrow-from-expr-block.rs
index 9fcd87418bee30a65e2db03a96c89c65fb4ac327..24c7285b1fb6fa960ffe5da9c7c2a182a688146f 100644 (file)
@@ -8,17 +8,19 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// pretty-expanded FIXME #23616
+
 #![allow(unknown_features)]
 #![feature(box_syntax)]
 
-fn borrow<F>(x: &int, f: F) where F: FnOnce(&int) {
+fn borrow<F>(x: &isize, f: F) where F: FnOnce(&isize) {
     f(x)
 }
 
-fn test1(x: &Box<int>) {
+fn test1(x: &Box<isize>) {
     borrow(&*(*x).clone(), |p| {
-        let x_a = &**x as *const int;
-        assert!((x_a as uint) != (p as *const int as uint));
+        let x_a = &**x as *const isize;
+        assert!((x_a as usize) != (p as *const isize as usize));
         assert_eq!(unsafe{*x_a}, *p);
     })
 }