diff options
Diffstat (limited to 'src/test/run-pass/unboxed-closures-prelude.rs')
| -rw-r--r-- | src/test/run-pass/unboxed-closures-prelude.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/run-pass/unboxed-closures-prelude.rs b/src/test/run-pass/unboxed-closures-prelude.rs index e8c977b4ed1..313fb67637e 100644 --- a/src/test/run-pass/unboxed-closures-prelude.rs +++ b/src/test/run-pass/unboxed-closures-prelude.rs @@ -18,15 +18,15 @@ fn main() { // FIXME (#22405): Replace `Box::new` with `box` here when/if possible. - let task: Box<Fn(int) -> int> = Box::new(|x| x); + let task: Box<Fn(isize) -> isize> = Box::new(|x| x); task.call((0, )); - let mut task: Box<FnMut(int) -> int> = Box::new(|x| x); + let mut task: Box<FnMut(isize) -> isize> = Box::new(|x| x); task(0); call(|x| x, 22); } -fn call<F:FnOnce(int) -> int>(f: F, x: int) -> int { +fn call<F:FnOnce(isize) -> isize>(f: F, x: isize) -> isize { f(x) } |
