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