Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
impl-trait
/
universal_hrtb_anon.rs
blob: 30c8d291f6ad9e73ba9a05ddde2a85874544b91e [
file
] [
log
] [
blame
]
// run-pass
fn
hrtb
(
f
:
impl
Fn
(&
u32
)
->
u32
)
->
u32
{
f
(&
22
)
+
f
(&
44
)
}
fn
main
()
{
let
sum
=
hrtb
(|
x
|
x
*
2
);
assert_eq
!(
sum
,
22
*
2
+
44
*
2
);
}