rustc/tests/ui/explicit-tail-calls/become-uncallable.fixed
2025-02-17 11:14:05 +01:00

19 lines
343 B
Plaintext

//@ 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() {}