diff --git a/src/libgreen/sched.rs b/src/libgreen/sched.rs index b63c3d92da3..984cc88a4c9 100644 --- a/src/libgreen/sched.rs +++ b/src/libgreen/sched.rs @@ -1433,7 +1433,7 @@ fn test_spawn_sched_blocking() { drop(handle); let mut handle = pool.spawn_sched(); - handle.send(TaskFromFriend(pool.task(TaskOpts::new(), proc() { + handle.send(PinnedTask(pool.task(TaskOpts::new(), proc() { // Wait until the other task has its lock start_po.recv();