mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
21 lines
332 B
Rust
21 lines
332 B
Rust
//@ run-pass
|
|
//@ ignore-pass
|
|
#![expect(incomplete_features)]
|
|
#![feature(explicit_tail_calls)]
|
|
|
|
fn c<T: Trait>() {
|
|
become T::f();
|
|
//~^ warning: tail calling a function marked with `#[track_caller]` has no special effect
|
|
}
|
|
|
|
trait Trait {
|
|
#[track_caller]
|
|
fn f() {}
|
|
}
|
|
|
|
impl Trait for () {}
|
|
|
|
fn main() {
|
|
c::<()>();
|
|
}
|