summary refs log tree commit diff
path: root/src/test/run-fail/issue-2144.rs
blob: 1c64b20c0b75679e5c32b3197f875f04e696c780 (plain)
1
2
3
4
5
6
7
8
9
// error-pattern:ran out of stack

// Don't leak when the landing pads need to request more stack
// than is allowed during normal execution

fn useBlock(f: fn~() -> uint) { useBlock(|| 22u ) }
fn main() {
    useBlock(|| 22u );
}