rust/tests/ui/threads-sendsync/task-comm-17.rs
2024-08-24 05:32:52 +02:00

17 lines
258 B
Rust

//@ run-pass
#![allow(unused_must_use)]
//@ needs-threads
//@ pretty-expanded FIXME #23616
// Issue #922
// This test is specifically about spawning temporary closures.
use std::thread;
fn f() {}
pub fn main() {
thread::spawn(move || f()).join();
}