Sign in
fuchsia
/
third_party
/
rust
/
15f159addefd8fea7564ba7617c8af78582b7816
/
.
/
src
/
test
/
ui
/
threads-sendsync
/
sendfn-is-a-block.rs
blob: 62807d8941af1c1012b4f475e0585b01a7835a3f [
file
] [
log
] [
blame
]
// run-pass
fn
test
<
F
>(
f
:
F
)
->
usize where F
:
FnOnce
(
usize
)
->
usize
{
return
f
(
22
);
}
pub
fn
main
()
{
let
y
=
test
(|
x
|
4
*
x
);
assert_eq
!(
y
,
88
);
}