]> git.proxmox.com Git - rustc.git/blame - src/test/ui/threads-sendsync/task-life-0.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / threads-sendsync / task-life-0.rs
CommitLineData
b7449926 1// run-pass
0bf4aa26 2#![allow(unused_must_use)]
7453a54e 3// ignore-emscripten no threads support
c34b1796
AL
4// pretty-expanded FIXME #23616
5
c34b1796 6use std::thread;
970d7e83 7
223e47cc 8pub fn main() {
9346a6ac 9 thread::spawn(move|| child("Hello".to_string()) ).join();
223e47cc
LB
10}
11
1a4d82fc 12fn child(_s: String) {
223e47cc
LB
13
14}