Upgrade rust/crates/async-trait to 0.1.41
Test: make
Change-Id: I7736a671cc2df3bbaae2ec9478031e83da141a69
diff --git a/tests/test.rs b/tests/test.rs
index 2d8b75b..002fd20 100644
--- a/tests/test.rs
+++ b/tests/test.rs
@@ -1025,3 +1025,26 @@
#[async_trait]
impl<T> Trait<T> for () {}
}
+
+// https://github.com/dtolnay/async-trait/issues/129
+pub mod issue129 {
+ #![deny(clippy::pedantic)]
+
+ use async_trait::async_trait;
+
+ #[async_trait]
+ pub trait TestTrait {
+ async fn a(_b: u8, c: u8) -> u8 {
+ c
+ }
+ }
+
+ pub struct TestStruct;
+
+ #[async_trait]
+ impl TestTrait for TestStruct {
+ async fn a(_b: u8, c: u8) -> u8 {
+ c
+ }
+ }
+}