]> git.lizzy.rs Git - rust.git/blob - src/test/ui/threads-sendsync/task-life-0.rs
Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup
[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 }