use std::future::Future;
async fn compare(x: i32, y: i32) -> bool {
x > y
}
async fn example<F, Fut>(f: F)
where
F: FnOnce(i32, i32) -> Fut,
Fut: Future<Output = bool>,
{
println!("{}", f(3, 2).await);
}
#[async_std::main]
async fn main() {
example(compare).await;
}