We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a11384e commit 78506f1Copy full SHA for 78506f1
tests/test.rs
@@ -1705,3 +1705,24 @@ pub mod issue283 {
1705
}
1706
1707
1708
+
1709
+// https://github.com/dtolnay/async-trait/issues/288
1710
+pub mod issue288 {
1711
+ use async_trait::async_trait;
1712
1713
+ #[async_trait]
1714
+ pub trait Trait {
1715
+ async fn f<#[cfg(any())] T: Send>(#[cfg(any())] t: T);
1716
+ async fn g<#[cfg(all())] T: Send>(#[cfg(all())] t: T);
1717
+ }
1718
1719
+ pub struct Struct;
1720
1721
1722
+ impl Trait for Struct {
1723
+ async fn f<#[cfg(any())] T: Send>(#[cfg(any())] t: T) {}
1724
+ async fn g<#[cfg(all())] T: Send>(#[cfg(all())] t: T) {
1725
+ let _ = t;
1726
1727
1728
+}
0 commit comments