Sign in
fuchsia
/
third_party
/
rust
/
15adfb9cd5b029268e1470a41391d91859b0a1f8
/
.
/
tests
/
ui
/
tail-call-arg-leak.rs
blob: 003fb212fcb7a0565e8502db311b04522b42c11a [
file
] [
log
] [
blame
]
//@ run-pass
// use of tail calls causes arg slot leaks, issue #160.
//@ pretty-expanded FIXME #23616
fn
inner
(
dummy
:
String
,
b
:
bool
)
{
if
b
{
return
inner
(
dummy
,
false
);
}
}
pub
fn
main
()
{
inner
(
"hi"
.
to_string
(),
true
);
}