Files
rust/tests/ui/async-await/issues/auxiliary/issue_67893.rs

13 lines
224 B
Rust
Raw Normal View History

//@ edition:2018
2020-04-16 10:09:59 +09:00
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;
}