summary refs log tree commit diff
path: root/src/test/run-pass/too-much-recursion.rs
blob: 0f005658d71ff6f0968616e32c8dc41b8f9d6754 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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() {
    let builder = task::task_builder();
    task::unsupervise(builder);
    task::run(builder) {||
        fn f() { f() };
        f();
    };
}