2011-09-19 19:02:53 -07:00
|
|
|
// Issue #922
|
|
|
|
|
2012-02-07 06:37:08 -08:00
|
|
|
// This test is specifically about spawning temporary closures.
|
2011-10-13 15:37:07 -07:00
|
|
|
|
2011-09-19 19:02:53 -07:00
|
|
|
use std;
|
2011-12-13 16:25:51 -08:00
|
|
|
import task;
|
2011-09-19 19:02:53 -07:00
|
|
|
|
|
|
|
fn f() {
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2012-06-30 16:19:07 -07:00
|
|
|
task::spawn(|| f() );
|
2011-09-19 19:02:53 -07:00
|
|
|
}
|