rust/tests/ui/explicit-tail-calls/caller_is_track_caller.rs

17 lines
336 B
Rust

#![expect(incomplete_features)]
#![feature(explicit_tail_calls)]
#[track_caller]
fn a() {
become b(); //~ error: a function marked with `#[track_caller]` cannot perform a tail-call
}
fn b() {}
#[track_caller]
fn c() {
become a(); //~ error: a function marked with `#[track_caller]` cannot perform a tail-call
}
fn main() {}