diff options
Diffstat (limited to 'src/libstd/task.rs')
| -rw-r--r-- | src/libstd/task.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/task.rs b/src/libstd/task.rs index f8b3d25033c..e9b01063f94 100644 --- a/src/libstd/task.rs +++ b/src/libstd/task.rs @@ -418,7 +418,7 @@ fn test_spawn_sched_childs_on_default_sched() { fn avoid_copying_the_body(spawnfn: |v: proc():Send|) { let (tx, rx) = channel::<uint>(); - let x = ~1; + let x = box 1; let x_in_parent = (&*x) as *int as uint; spawnfn(proc() { @@ -507,7 +507,7 @@ fn test_try_fail_message_owned_str() { #[test] fn test_try_fail_message_any() { match try(proc() { - fail!(~413u16 as ~Any:Send); + fail!(box 413u16 as ~Any:Send); }) { Err(e) => { type T = ~Any:Send; |
