about summary refs log tree commit diff
path: root/src/test/run-pass/tcp-connect-timeouts.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/tcp-connect-timeouts.rs')
-rw-r--r--src/test/run-pass/tcp-connect-timeouts.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/tcp-connect-timeouts.rs b/src/test/run-pass/tcp-connect-timeouts.rs
index 7dcbccdb17a..2e4b9da691e 100644
--- a/src/test/run-pass/tcp-connect-timeouts.rs
+++ b/src/test/run-pass/tcp-connect-timeouts.rs
@@ -34,7 +34,7 @@ fn eventual_timeout() {
 
     let (tx1, rx1) = channel();
     let (_tx2, rx2) = channel::<()>();
-    std::task::spawn(proc() {
+    std::task::spawn(move|| {
         let _l = TcpListener::bind(addr).unwrap().listen();
         tx1.send(());
         let _ = rx2.recv_opt();