Skip to content

Commit a55011e

Browse files
author
Jorge Aparicio
committed
fix tests
1 parent ec11f66 commit a55011e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/test/compile-fail/unboxed-closures-type-mismatch.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ use std::ops::FnMut;
1414

1515
pub fn main() {
1616
let mut f = |&mut: x: int, y: int| -> int { x + y };
17-
let z = f(1u, 2); //~ ERROR type mismatch
17+
let z = f(1u, 2); //~ ERROR mismatched types
1818
println!("{}", z);
1919
}

src/test/run-pass/overloaded-calls-object-zero-args.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
// Tests calls to closure arguments where the closure takes 0 arguments.
1212
// This is a bit tricky due to rust-call ABI.
1313

14-
fn foo(f: &mut FnMut()) -> int {
14+
fn foo(f: &mut FnMut() -> int) -> int {
1515
f()
1616
}
1717

1818
fn main() {
19-
let z = foo(|| 22);
19+
let z = foo(&mut || 22);
2020
assert_eq!(z, 22);
2121
}

0 commit comments

Comments
 (0)