Skip to content

Commit e5828bf

Browse files
committed
Add regression test for issue 210
1 parent 9ed6489 commit e5828bf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,3 +1450,14 @@ pub mod issue204 {
14501450
async fn g(arg: *const impl Trait);
14511451
}
14521452
}
1453+
1454+
// https://github.com/dtolnay/async-trait/issues/210
1455+
pub mod issue210 {
1456+
use async_trait::async_trait;
1457+
use std::sync::Arc;
1458+
1459+
#[async_trait]
1460+
pub trait Trait {
1461+
async fn f(self: Arc<Self>) {}
1462+
}
1463+
}

0 commit comments

Comments
 (0)