]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tail-call-arg-leak.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[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 }