rust/src/test/run-pass/task-comm-17.rs

13 lines
155 B
Rust

// Issue #922
// This test is specifically about spawning temporary closures.
use std;
import task;
fn f() {
}
fn main() {
task::spawn {|| f() };
}