]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/regions-ref-in-fn-arg.rs
Update compile fail tests to use isize.
[rust.git] / src / test / compile-fail / regions-ref-in-fn-arg.rs
index e47fddbdc36fd7eb188356e83624599b2d6f238f..13a903bf2b55902293f76cd674badbf1aec2675c 100644 (file)
 
 #![feature(box_syntax)]
 
-fn arg_item(box ref x: Box<int>) -> &'static int {
+fn arg_item(box ref x: Box<isize>) -> &'static isize {
     x //~^ ERROR borrowed value does not live long enough
 }
 
-fn with<R, F>(f: F) -> R where F: FnOnce(Box<int>) -> R { f(box 3) }
+fn with<R, F>(f: F) -> R where F: FnOnce(Box<isize>) -> R { f(box 3) }
 
-fn arg_closure() -> &'static int {
+fn arg_closure() -> &'static isize {
     with(|box ref x| x) //~ ERROR borrowed value does not live long enough
 }