Upgrade rust/crates/async-trait to 0.1.42
Test: make
Change-Id: I59704fdd852efc7dc64f6cf733093632653b0313
diff --git a/tests/test.rs b/tests/test.rs
index 002fd20..5fc238b 100644
--- a/tests/test.rs
+++ b/tests/test.rs
@@ -1,4 +1,7 @@
-#![cfg_attr(async_trait_nightly_testing, feature(specialization, const_generics))]
+#![cfg_attr(
+ async_trait_nightly_testing,
+ feature(min_specialization, min_const_generics)
+)]
use async_trait::async_trait;
@@ -1048,3 +1051,29 @@
}
}
}
+
+// https://github.com/dtolnay/async-trait/issues/134
+#[cfg(async_trait_nightly_testing)]
+pub mod issue134 {
+ use async_trait::async_trait;
+
+ #[async_trait]
+ trait TestTrait {
+ async fn run<const DUMMY: bool>(self)
+ where
+ Self: Sized,
+ {
+ }
+ }
+
+ pub struct TestStruct;
+
+ #[async_trait]
+ impl TestTrait for TestStruct {
+ async fn run<const DUMMY: bool>(self)
+ where
+ Self: Sized,
+ {
+ }
+ }
+}