about summary refs log tree commit diff
path: root/tests/ui/threads-sendsync/task-life-0.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/threads-sendsync/task-life-0.rs')
-rw-r--r--tests/ui/threads-sendsync/task-life-0.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/ui/threads-sendsync/task-life-0.rs b/tests/ui/threads-sendsync/task-life-0.rs
index d3eca5d371f..f08a281e76c 100644
--- a/tests/ui/threads-sendsync/task-life-0.rs
+++ b/tests/ui/threads-sendsync/task-life-0.rs
@@ -6,9 +6,7 @@
 use std::thread;
 
 pub fn main() {
-    thread::spawn(move|| child("Hello".to_string()) ).join();
+    thread::spawn(move || child("Hello".to_string())).join();
 }
 
-fn child(_s: String) {
-
-}
+fn child(_s: String) {}