From 209642c65177d6cf42dd4eea693040aa91cde9ee Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 30 Jan 2014 14:10:53 -0800 Subject: std: Fix tests with io_error usage --- src/libstd/task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/task.rs') diff --git a/src/libstd/task.rs b/src/libstd/task.rs index c8b69083086..5fa0c6431ab 100644 --- a/src/libstd/task.rs +++ b/src/libstd/task.rs @@ -541,7 +541,7 @@ fn test_avoid_copying_the_body_task_spawn() { #[test] fn test_avoid_copying_the_body_try() { avoid_copying_the_body(|f| { - try(proc() { + let _ = try(proc() { f() }); }) -- cgit 1.4.1-3-g733a5