Skip to content

Commit

Permalink
Add regression test of issue 204
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jun 2, 2022
1 parent a4c76a6 commit c69d605
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1439,3 +1439,13 @@ pub mod issue199 {
assert_eq!(counter.get(), 1);
}
}

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

#[async_trait]
pub trait Trait {
async fn f(arg: &impl Trait);
}
}

0 comments on commit c69d605

Please sign in to comment.