rust/src/test/run-fail/morestack1.rs
2011-12-18 13:37:33 -08:00

12 lines
162 B
Rust

// error-pattern:explicit failure
fn getbig(i: int) {
if i != 0 {
getbig(i - 1);
} else {
fail;
}
}
fn main() {
getbig(100000);
}