rustc/tests/ui/explicit-tail-calls/ctfe-arg-good-borrow.rs
2025-02-17 11:14:05 +01:00

14 lines
213 B
Rust

//@ check-pass
#![expect(incomplete_features)]
#![feature(explicit_tail_calls)]
pub const fn test(x: &Type) {
const fn takes_borrow(_: &Type) {}
become takes_borrow(x);
}
pub struct Type;
fn main() {}