summary refs log tree commit diff
path: root/src/test/run-pass/too-much-recursion.rs
blob: 83023931b42e3a51f45ffa2e62e68093887743ef (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::builder();
    task::unsupervise(builder);
    do task::run(builder) {
        fn f() { f() };
        f();
    };
}