]> git.lizzy.rs Git - rust.git/blob - src/test/ui/threads-sendsync/task-comm-17.rs
Rollup merge of #97317 - GuillaumeGomez:gui-settings-text-click, r=jsha
[rust.git] / src / test / 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 }