rust/src/test/run-pass/issue-2190-1.rs
2012-11-15 12:35:14 -08:00

15 lines
232 B
Rust

// xfail-test
const generations: uint = 1024+256+128+49;
fn child_no(x: uint) -> fn~() {
|| {
if x < generations {
task::spawn(child_no(x+1));
}
}
}
fn main() {
task::spawn(child_no(0));
}