2022-10-01 12:19:31 +02: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-16 10:09:59 +09: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;
|
|
|
|
}
|