Sign in
fuchsia
/
third_party
/
rust
/
20d43d03dd27568f609d621ce44673393e838892
/
.
/
src
/
test
/
ui
/
async-await
/
issues
/
issue-55324.rs
blob: 1d77d420127a88d7e3acfb087be53c507245e255 [
file
] [
log
] [
blame
]
// build-pass (FIXME(62277): could be check-pass?)
// edition:2018
use
std
::
future
::
Future
;
async
fn
foo
<
F
:
Future
<
Output
=
i32
>>(
x
:
&
i32
,
future
:
F
)
->
i32
{
let
y
=
future
.
await
;
*
x
+
y
}
fn
main
()
{}