Sign in
fuchsia
/
third_party
/
rust
/
9ae1a664f7b947dadb9e97eea7703831d9cd5d31
/
.
/
src
/
test
/
ui
/
consts
/
const-fn-nested.rs
blob: ef5598bf9e776f2d634b607407fbdca6ad746f86 [
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
);
}