summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/issues/auxiliary/issue_67893.rs
blob: d5394469806da78e7340c3b0e3b6be68e034e652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// revisions: no_drop_tracking drop_tracking drop_tracking_mir
// [drop_tracking] compile-flags: -Zdrop-tracking
// [drop_tracking_mir] compile-flags: -Zdrop-tracking-mir
// 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;
}