summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/issues/auxiliary/issue_67893.rs
blob: 387966a5064fa58d329a8653f780fb0f5c450e86 (plain)
1
2
3
4
5
6
7
8
9
10
// 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;
}