Skip to content

Commit 1e2a850

Browse files
committed
Add test of issue 177 trait impl too
1 parent 82d6990 commit 1e2a850

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,6 +1382,13 @@ pub mod issue177 {
13821382
pub trait Trait {
13831383
async fn foo(&self, _callback: impl FnMut(&str) + Send) {}
13841384
}
1385+
1386+
pub struct Struct;
1387+
1388+
#[async_trait]
1389+
impl Trait for Struct {
1390+
async fn foo(&self, _callback: impl FnMut(&str) + Send) {}
1391+
}
13851392
}
13861393

13871394
// https://github.com/dtolnay/async-trait/issues/183

0 commit comments

Comments
 (0)