summary refs log tree commit diff
path: root/src/test/run-pass/task-comm-17.rs
blob: 0db319c4c3581f2dd5cd088b1488a6bfcec4dbd3 (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() };
}