]> git.lizzy.rs Git - rust.git/blob - tests/ui/tail-call-arg-leak.rs
Rollup merge of #107102 - compiler-errors:new-solver-new-candidats-4, r=lcnr
[rust.git] / tests / 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 }