about summary refs log tree commit diff
path: root/src/libstd/rand/os.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/rand/os.rs')
-rw-r--r--src/libstd/rand/os.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/rand/os.rs b/src/libstd/rand/os.rs
index 37628b65388..5405892535c 100644
--- a/src/libstd/rand/os.rs
+++ b/src/libstd/rand/os.rs
@@ -355,7 +355,7 @@ mod test {
         for _ in range(0u, 20) {
             let (tx, rx) = channel();
             txs.push(tx);
-            task::spawn(proc() {
+            task::spawn(move|| {
                 // wait until all the tasks are ready to go.
                 rx.recv();