13 lines
223 B
Rust
Raw Normal View History

2020-04-16 10:09:59 +09:00
// edition:2018
use std::sync::{Arc, Mutex};
2023-06-24 10:02:54 +00:00
fn make_arc() -> Arc<Mutex<()>> { unimplemented!() }
2020-04-16 10:09:59 +09:00
pub async fn f(_: ()) {}
pub async fn run() {
2023-06-24 10:02:54 +00:00
let x: Arc<Mutex<()>> = make_arc();
2020-04-16 10:09:59 +09:00
f(*x.lock().unwrap()).await;
}