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 {
33 // NOTE: this code is here just to check that the identation is correct in the suggested fix
46 async fn meth_fut(&self) -> i32 { 42 }
48 async fn empty_fut(&self) {}
51 fn not_fut(&self) -> i32 {
56 fn has_other_stmts() -> impl core::future::Future<Output = i32> {
62 async fn already_async(&self) -> impl Future<Output = i32> {