Skip to content

Commit bb62922

Browse files
committed
Add regression test for issue 158
1 parent 6bff4e0 commit bb62922

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/test.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,3 +1321,17 @@ pub mod issue154 {
13211321
}
13221322
}
13231323
}
1324+
1325+
// https://github.com/dtolnay/async-trait/issues/158
1326+
pub mod issue158 {
1327+
use async_trait::async_trait;
1328+
1329+
fn f() {}
1330+
1331+
#[async_trait]
1332+
pub trait Trait {
1333+
async fn f(&self) {
1334+
self::f()
1335+
}
1336+
}
1337+
}

0 commit comments

Comments
 (0)