3 #![warn(clippy::manual_async_fn)]
6 use std::future::Future;
8 fn fut() -> impl Future<Output = i32> {
12 fn empty_fut() -> impl Future<Output = ()> {
16 fn core_fut() -> impl core::future::Future<Output = i32> {
21 fn has_other_stmts() -> impl core::future::Future<Output = i32> {
32 async fn already_async() -> impl Future<Output = i32> {
38 fn inh_fut() -> impl Future<Output = i32> {
40 // NOTE: this code is here just to check that the indentation is correct in the suggested fix
54 fn meth_fut(&self) -> impl Future<Output = i32> {
58 fn empty_fut(&self) -> impl Future<Output = ()> {
63 fn not_fut(&self) -> i32 {
68 fn has_other_stmts() -> impl core::future::Future<Output = i32> {
74 async fn already_async(&self) -> impl Future<Output = i32> {