blob: f3e226c9e568158f1dcd9f31f2decbe3ff85d9ff [file]
// 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
}