Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
suggestions
/
async-fn-ctor-passed-as-arg-where-it-should-have-been-called.rs
blob: a2d2ba145bc5efcd4dd2ef2a209e7de3acfd2dc7 [
file
] [
log
] [
blame
]
// edition:2018
use
std
::
future
::
Future
;
async
fn
foo
()
{}
fn
bar
(
f
:
impl
Future
<
Output
=()>)
{}
fn
main
()
{
bar
(
foo
);
//~ERROR E0277
}