Sign in
fuchsia
/
third_party
/
rust
/
41601a8c95240cada94c13466a1fea02e5fe87ed
/
.
/
src
/
test
/
ui
/
if-check.rs
blob: 6593225e7dd95ab549ab69c91c185a79bbde2be8 [
file
] [
log
] [
blame
]
// run-pass
fn
even
(
x
:
usize
)
->
bool
{
if
x
<
2
{
return
false
;
}
else
if
x
==
2
{
return
true
;
}
else
{
return
even
(
x
-
2
);
}
}
fn
foo
(
x
:
usize
)
{
if
even
(
x
)
{
println
!(
"{}"
,
x
);
}
else
{
panic
!();
}
}
pub
fn
main
()
{
foo
(
2
);
}