mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 07:36:53 +00:00
19 lines
343 B
Rust
19 lines
343 B
Rust
//@ run-rustfix
|
|
#![expect(incomplete_features)]
|
|
#![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() {}
|