summary refs log tree commit diff
path: root/src/test/run-pass/task-comm-17.rs
blob: 307dde20825c58fb7415c7375c7af6c47e21621e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Issue #922

// This test is specifically about spawning temporary closures.

use std;
import task;

fn f() {
}

fn main() {
    task::spawn(|| f() );
}