Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
5f62a35bae82dd0c5ff9dedd83fe2cfd74b67792
/
.
/
tests
/
ui
/
consts
/
const-fn-nested.rs
blob: d0edb51cb6aca30afb64efb0d384699d6a83a648 [
file
] [
log
] [
blame
]
//@ run-pass
// Test a call whose argument is the result of another call.
const
fn
sub
(
x
:
u32
,
y
:
u32
)
->
u32
{
x
-
y
}
const
X
:
u32
=
sub
(
sub
(
88
,
44
),
22
);
fn
main
()
{
assert_eq
!(
X
,
22
);
}