Sign in
fuchsia
/
third_party
/
rust
/
a10a02bf5fd00e4b34f1856af17d058dd5ec06f0
/
.
/
src
/
test
/
ui
/
tail-call-arg-leak.rs
blob: a60944b632d29d364c85d4df72a23a3d03299318 [
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
);
}