Skip to content

Commit c69d605

Browse files
committed
Add regression test of issue 204
1 parent a4c76a6 commit c69d605

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,3 +1439,13 @@ pub mod issue199 {
14391439
assert_eq!(counter.get(), 1);
14401440
}
14411441
}
1442+
1443+
// https://github.com/dtolnay/async-trait/issues/204
1444+
pub mod issue204 {
1445+
use async_trait::async_trait;
1446+
1447+
#[async_trait]
1448+
pub trait Trait {
1449+
async fn f(arg: &impl Trait);
1450+
}
1451+
}

0 commit comments

Comments
 (0)