Skip to content

Commit

Permalink
Tests for dtolnay#177
Browse files Browse the repository at this point in the history
  • Loading branch information
kawaemon committed May 16, 2022
1 parent 9a323ed commit fbf01a8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test.rs
Expand Up @@ -1374,6 +1374,16 @@ pub mod issue169 {
pub fn test(_t: &dyn Trait) {}
}

// https://github.com/dtolnay/async-trait/issues/177
pub mod issue177 {
use async_trait::async_trait;

#[async_trait]
trait Foo {
async fn foo(&self, _callback: impl FnMut(&str) + Send) {}
}
}

// https://github.com/dtolnay/async-trait/issues/183
pub mod issue183 {
#![deny(clippy::shadow_same)]
Expand Down

0 comments on commit fbf01a8

Please sign in to comment.