about summary refs log tree commit diff
path: root/tests/ui/explicit-tail-calls/become-uncallable.fixed
blob: b77c46ea435492e631f6bcdd4f5365c12c1bdea7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//@ run-rustfix
#![expect(incomplete_features)]
#![feature(explicit_tail_calls)]
#![allow(unused)]

fn f() -> u64 {
    return 1; //~ error: `become` requires a function call
}

fn g() {
    return { h() }; //~ error: `become` requires a function call
}

fn h() {
    return *&g(); //~ error: `become` requires a function call
}

fn main() {}