2023-05-11 11:43:09 +00:00
|
|
|
//@ run-rustfix
|
2024-11-29 04:28:02 +01:00
|
|
|
#![expect(incomplete_features)]
|
2023-05-11 11:43:09 +00:00
|
|
|
#![feature(explicit_tail_calls)]
|
|
|
|
|
#![allow(unused)]
|
|
|
|
|
|
|
|
|
|
fn f() -> u64 {
|
|
|
|
|
become 1; //~ error: `become` requires a function call
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn g() {
|
|
|
|
|
become { h() }; //~ error: `become` requires a function call
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn h() {
|
|
|
|
|
become *&g(); //~ error: `become` requires a function call
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|