Sign in
fuchsia
/
third_party
/
rust
/
7bade6ef730cff83f3591479a98916920f66decd
/
.
/
src
/
test
/
ui
/
mir
/
issue-68841.rs
blob: 14884a97fabcbc4763b9954875d3c1780852a939 [
file
] [
log
] [
blame
]
// compile-flags: -Z mir-opt-level=2
// edition:2018
// build-pass
#![
feature
(
async_closure
)]
use
std
::
future
::
Future
;
fn
async_closure
()
->
impl
Future
<
Output
=
u8
>
{
(
async
move
||
->
u8
{
42
})()
}
fn
main
()
{
let
_fut
=
async_closure
();
}