2022-10-01 05:19:31 -05:00
|
|
|
// revisions: no_drop_tracking drop_tracking drop_tracking_mir
|
|
|
|
// [drop_tracking] compile-flags: -Zdrop-tracking
|
|
|
|
// [drop_tracking_mir] compile-flags: -Zdrop-tracking-mir
|
2020-04-15 20:09:59 -05:00
|
|
|
// 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;
|
|
|
|
}
|