Skip to content

Commit

Permalink
Add regression test for issue 158
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Apr 14, 2021
1 parent 6bff4e0 commit bb62922
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1321,3 +1321,17 @@ pub mod issue154 {
}
}
}

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

fn f() {}

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

0 comments on commit bb62922

Please sign in to comment.