diff --git a/src/libcore/task.rs b/src/libcore/task.rs index afc9d7837126a..19e3f2b21b381 100644 --- a/src/libcore/task.rs +++ b/src/libcore/task.rs @@ -229,7 +229,7 @@ Returns: The new child task along with the port to receive messages and the channel to send messages. */ -fn spawn_connected(f: connected_fn) +fn spawn_connected(+f: connected_fn) -> connected_task { let from_child_port = comm::port::(); let from_child_chan = comm::chan(from_child_port);