about summary refs log tree commit diff
path: root/tests/ui/threads-sendsync/task-comm-1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/threads-sendsync/task-comm-1.rs')
-rw-r--r--tests/ui/threads-sendsync/task-comm-1.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/ui/threads-sendsync/task-comm-1.rs b/tests/ui/threads-sendsync/task-comm-1.rs
index 41592bd916b..75d9e887cd1 100644
--- a/tests/ui/threads-sendsync/task-comm-1.rs
+++ b/tests/ui/threads-sendsync/task-comm-1.rs
@@ -4,11 +4,15 @@
 
 use std::thread;
 
-pub fn main() { test00(); }
+pub fn main() {
+    test00();
+}
 
-fn start() { println!("Started / Finished task."); }
+fn start() {
+    println!("Started / Finished task.");
+}
 
 fn test00() {
-    thread::spawn(move|| start() ).join();
+    thread::spawn(move || start()).join();
     println!("Completing.");
 }