]> git.lizzy.rs Git - rust.git/blob - src/test/ui/threads-sendsync/task-comm-1.rs
Rollup merge of #93112 - pietroalbini:pa-cve-2022-21658-nightly, r=pietroalbini
[rust.git] / src / test / ui / threads-sendsync / task-comm-1.rs
1 // run-pass
2 #![allow(unused_must_use)]
3 // ignore-emscripten no threads support
4
5 use std::thread;
6
7 pub fn main() { test00(); }
8
9 fn start() { println!("Started / Finished task."); }
10
11 fn test00() {
12     thread::spawn(move|| start() ).join();
13     println!("Completing.");
14 }