]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/async-fn-ctor-passed-as-arg-where-it-should-have-been-called.rs
Auto merge of #65129 - andjo403:cargo_args, r=alexcrichton
[rust.git] / src / test / ui / suggestions / async-fn-ctor-passed-as-arg-where-it-should-have-been-called.rs
1 // edition:2018
2 use std::future::Future;
3
4 async fn foo() {}
5
6 fn bar(f: impl Future<Output=()>) {}
7
8 fn main() {
9     bar(foo); //~ERROR E0277
10 }