Skip to content

Commit

Permalink
Add regression test for issue 210
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Nov 29, 2022
1 parent 9ed6489 commit e5828bf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test.rs
Expand Up @@ -1450,3 +1450,14 @@ pub mod issue204 {
async fn g(arg: *const impl Trait);
}
}

// https://github.com/dtolnay/async-trait/issues/210
pub mod issue210 {
use async_trait::async_trait;
use std::sync::Arc;

#[async_trait]
pub trait Trait {
async fn f(self: Arc<Self>) {}
}
}

0 comments on commit e5828bf

Please sign in to comment.