diff --git a/src/test/run-pass/iter-filter-to-vec.rs b/src/test/run-pass/iter-filter-to-vec.rs index 12f1d747caf4..e3f8790e302d 100644 --- a/src/test/run-pass/iter-filter-to-vec.rs +++ b/src/test/run-pass/iter-filter-to-vec.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -fn is_even(+x: uint) -> bool { (x % 2) == 0 } +fn is_even(x: &uint) -> bool { (*x % 2) == 0 } fn main() { assert [1, 3].filter_to_vec(is_even) == ~[]; diff --git a/src/test/run-pass/iter-map-to-vec.rs b/src/test/run-pass/iter-map-to-vec.rs index 4b0ac36eaa3f..ffd7afe923de 100644 --- a/src/test/run-pass/iter-map-to-vec.rs +++ b/src/test/run-pass/iter-map-to-vec.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -fn inc(+x: uint) -> uint { x + 1 } +fn inc(x: &uint) -> uint { *x + 1 } fn main() { assert [1, 3].map_to_vec(inc) == ~[2, 4];