blob: d8883fb498c1aa72685b320498bb87094fb56c4c [file] [log] [blame]
Andrew Walbrand1b91c72020-08-11 17:12:08 +01001use async_trait::async_trait;
2use std::sync::Mutex;
3
4async fn f() {}
5
6#[async_trait]
7trait Test {
8 async fn test(&self) {
9 let mutex = Mutex::new(());
10 let _guard = mutex.lock().unwrap();
11 f().await;
12 }
Joel Galenson5448f372021-04-01 15:10:30 -070013
14 async fn test_ret(&self) -> bool {
15 let mutex = Mutex::new(());
16 let _guard = mutex.lock().unwrap();
17 f().await;
18 true
19 }
Andrew Walbrand1b91c72020-08-11 17:12:08 +010020}
21
22fn main() {}