rust/tests/ui/threads-sendsync/task-comm-17.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
279 B
Rust
Raw Normal View History

// run-pass
#![allow(unused_must_use)]
// ignore-emscripten no threads support
// pretty-expanded FIXME #23616
// Issue #922
// This test is specifically about spawning temporary closures.
use std::thread;
fn f() {
}
pub fn main() {
2015-04-13 22:15:32 +00:00
thread::spawn(move|| f() ).join();
}