#[maybe_async_cfg::maybe( sync(feature = "is_sync"), )] async fn async_fn() -> bool { true } #[maybe_async_cfg::maybe( idents(async_fn(fn)), sync(feature = "is_sync"), async(not(feature = "is_sync")), )] async fn test_async_fn() { let res = async_fn().await; assert_eq!(res, true); } fn main() { }