blob: e5ab4742daba13bb32f5db3a52c9f8eb56860464 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//@ edition:2021
//@ revisions: current next
//@ ignore-compare-mode-next-solver (explicit revisions)
//@[next] compile-flags: -Znext-solver
fn main() {
fn needs_fn(x: impl FnOnce()) {}
needs_fn(async || {});
//~^ ERROR expected `{async closure@is-not-fn.rs:8:14}` to return `()`
}
|