blob: efde4d2864d13c8466dca32295646d53b707f361 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// 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;
}
|