mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 08:18:44 +00:00
16 lines
225 B
Rust
16 lines
225 B
Rust
//@ run-pass
|
|
#![allow(unused_must_use)]
|
|
//@ needs-threads
|
|
|
|
// Issue #922
|
|
|
|
// This test is specifically about spawning temporary closures.
|
|
|
|
use std::thread;
|
|
|
|
fn f() {}
|
|
|
|
pub fn main() {
|
|
thread::spawn(move || f()).join();
|
|
}
|