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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
336 B
Rust
Raw Normal View History

#![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() {}