rust/src/test/run-pass/too-much-recursion.rs

14 lines
318 B
Rust
Raw Normal View History

// xfail-win32
// error-pattern:ran out of stack
// Test that the task fails after hiting the recursion limit, but
// that it doesn't bring down the whole proc
fn main() {
2012-03-12 15:52:30 -07:00
let builder = task::task_builder();
2012-02-18 16:34:42 -08:00
task::unsupervise(builder);
task::run(builder) {||
fn f() { f() };
f();
};
}