rust/src/test/run-pass/tail-call-arg-leak.rs
2011-07-27 15:54:33 +02:00

7 lines
159 B
Rust

// use of tail calls causes arg slot leaks, issue #160.
fn inner(dummy: str, b: bool) { if b { be inner(dummy, false); } }
fn main() { inner("hi", true); }