]> git.lizzy.rs Git - rust.git/blob - src/test/ui/threads-sendsync/task-life-0.rs
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24
[rust.git] / src / test / ui / threads-sendsync / task-life-0.rs
1 // run-pass
2 #![allow(unused_must_use)]
3 // ignore-emscripten no threads support
4 // pretty-expanded FIXME #23616
5
6 use std::thread;
7
8 pub fn main() {
9     thread::spawn(move|| child("Hello".to_string()) ).join();
10 }
11
12 fn child(_s: String) {
13
14 }