From 907fa74e8b98aa325ddd45d7de5e47772c27b165 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 18 Dec 2012 15:08:19 -0800 Subject: [PATCH] Fix some iter tests --- src/test/run-pass/iter-filter-to-vec.rs | 2 +- src/test/run-pass/iter-map-to-vec.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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];