blob: 59d034953d7005d59aa484652b88d5a044809cd5 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 | //@ 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);
}
 |