Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
async-await
/
async-closures
/
is-not-fn.rs
blob: f877513043db20aea8a9664c74cc40c6acd84190 [
file
] [
log
] [
blame
] [
edit
]
//@ edition:2021
#![
feature
(
async_closure
)]
fn
main
()
{
fn
needs_fn
(
x
:
impl
FnOnce
())
{}
needs_fn
(
async
||
{});
//~^ ERROR expected `{async
[email protected]
:7:14}` to be a closure that returns `()`
}