blob: 59d034953d7005d59aa484652b88d5a044809cd5 [file] [log] [blame]
//@ edition:2021
//@ check-pass
//@ revisions: current next
//@ ignore-compare-mode-next-solver (explicit revisions)
//@[next] compile-flags: -Znext-solver
fn call_once<F>(_: impl FnOnce() -> F) {}
fn main() {
let mut i = 0;
let c = async || {
i += 1;
};
call_once(c);
}