3 #![warn(clippy::manual_async_fn)]
6 use std::future::Future;
8 async fn fut() -> i32 { 42 }
10 async fn empty_fut() {}
12 async fn core_fut() -> i32 { 42 }
15 fn has_other_stmts() -> impl core::future::Future<Output = i32> {
26 async fn already_async() -> impl Future<Output = i32> {
32 async fn inh_fut() -> i32 { 42 }
34 async fn meth_fut(&self) -> i32 { 42 }
36 async fn empty_fut(&self) {}
39 fn not_fut(&self) -> i32 {
44 fn has_other_stmts() -> impl core::future::Future<Output = i32> {
50 async fn already_async(&self) -> impl Future<Output = i32> {