1 #![warn(clippy::unused_async)]
3 use std::future::Future;
6 async fn foo() -> i32 {
10 async fn bar() -> i32 {
17 async fn unused(&self) -> i32 {
21 async fn used(&self) -> i32 {
27 fn trait_method() -> Pin<Box<dyn Future<Output = i32>>>;
30 macro_rules! async_trait_impl {
32 impl AsyncTrait for S {
33 fn trait_method() -> Pin<Box<dyn Future<Output = i32>>> {
34 async fn unused() -> i32 {