rust/tests/ui/async-await/issues/auxiliary/issue_67893.rs
2023-09-23 13:34:07 +00:00

11 lines
175 B
Rust

// edition:2018
use std::sync::{Arc, Mutex};
pub async fn f(_: ()) {}
pub async fn run() {
let x: Arc<Mutex<()>> = unimplemented!();
f(*x.lock().unwrap()).await;
}