about summary refs log tree commit diff
path: root/tests/ui/threads-sendsync/spawn.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/threads-sendsync/spawn.rs')
-rw-r--r--tests/ui/threads-sendsync/spawn.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/ui/threads-sendsync/spawn.rs b/tests/ui/threads-sendsync/spawn.rs
index c7b344b9f75..c9f7c40ddb8 100644
--- a/tests/ui/threads-sendsync/spawn.rs
+++ b/tests/ui/threads-sendsync/spawn.rs
@@ -4,7 +4,10 @@
 use std::thread;
 
 pub fn main() {
-    thread::spawn(move|| child(10)).join().ok().unwrap();
+    thread::spawn(move || child(10)).join().ok().unwrap();
 }
 
-fn child(i: isize) { println!("{}", i); assert_eq!(i, 10); }
+fn child(i: isize) {
+    println!("{}", i);
+    assert_eq!(i, 10);
+}