]> git.proxmox.com Git - rustc.git/blob - tests/ui/threads-sendsync/task-comm-17.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / threads-sendsync / task-comm-17.rs
1 // run-pass
2 #![allow(unused_must_use)]
3 // ignore-emscripten no threads support
4 // pretty-expanded FIXME #23616
5
6 // Issue #922
7
8 // This test is specifically about spawning temporary closures.
9
10 use std::thread;
11
12 fn f() {
13 }
14
15 pub fn main() {
16 thread::spawn(move|| f() ).join();
17 }