Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
async-await
/
issues
/
auxiliary
/
issue_67893.rs
blob: 0591ec5dfe8215de5b20c9f76b624ad4c1756188 [
file
] [
log
] [
blame
]
//@ edition:2018
use
std
::
sync
::{
Arc
,
Mutex
};
fn
make_arc
()
->
Arc
<
Mutex
<()>>
{
unimplemented
!()
}
pub
async
fn
f
(
_
:
())
{}
pub
async
fn
run
()
{
let
x
:
Arc
<
Mutex
<()>>
=
make_arc
();
f
(*
x
.
lock
().
unwrap
()).
await
;
}