Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
threads-sendsync
/
sendfn-is-a-block.rs
blob: 9afa1c47b65d992f17903ca0160c886ade2d246a [
file
] [
log
] [
blame
] [
edit
]
//@ 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
);
}