about summary refs log tree commit diff
path: root/tests/ui/explicit-tail-calls/in-closure.rs
blob: b23ff5a1e05b4018143582bae2a4d1f82079ce23 (plain)
1
2
3
4
5
6
7
8
#![expect(incomplete_features)]
#![feature(explicit_tail_calls)]

fn main() {
    || become f(); //~ error: `become` is not allowed in closures
}

fn f() {}