blob: a3e3856aa968447c0893a3d893d5b45cc7627533 [file] [log] [blame]
use async_trait::async_trait;
use std::sync::Mutex;
async fn f() {}
#[async_trait]
trait Test {
async fn test(&self) {
let mutex = Mutex::new(());
let _guard = mutex.lock().unwrap();
f().await;
}
}
fn main() {}