blob: a05773497707c8f4ec33f39f2f6c737cbbec7c53 [file] [edit]
//@ edition:2018
//@ run-rustfix
#![allow(unused_variables)]
use std::future::Future;
async fn foo() {}
fn bar(f: impl Future<Output=()>) {}
fn main() {
bar(foo); //~ERROR E0277
let async_closure = async || ();
bar(async_closure); //~ERROR E0277
}