| // Regression test for #150701 | |
| //@ run-rustfix | |
| //@ edition: 2024 | |
| use std::future::Future; | |
| fn f(_c: impl Future<Output = ()>) {} | |
| fn main() { | |
| f((async || {})()); //~ ERROR: expected function, found `()` | |
| //~^ ERROR: is not a future | |
| f(async {}); | |
| //~^ ERROR: is not a future | |
| } |