]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tail-call-arg-leak.rs
Auto merge of #81507 - weiznich:add_diesel_to_cargo_test, r=Mark-Simulacrum
[rust.git] / src / test / ui / tail-call-arg-leak.rs
1 // run-pass
2 // use of tail calls causes arg slot leaks, issue #160.
3 // pretty-expanded FIXME #23616
4
5 fn inner(dummy: String, b: bool) { if b { return inner(dummy, false); } }
6
7 pub fn main() {
8     inner("hi".to_string(), true);
9 }