rust/src/test/run-pass/tail-call-arg-leak.rs
Lindsey Kuper b8880e3254 Remove be keyword.
Closes #2227.
2012-05-15 10:41:14 -07:00

8 lines
161 B
Rust

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