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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
223 B
Rust
Raw Normal View History

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