Files
rust/tests/ui/explicit-tail-calls/ctfe-arg-good-borrow.rs

14 lines
213 B
Rust
Raw Normal View History

2023-06-28 15:34:10 +00:00
//@ check-pass
#![expect(incomplete_features)]
2023-06-28 15:34:10 +00:00
#![feature(explicit_tail_calls)]
pub const fn test(x: &Type) {
const fn takes_borrow(_: &Type) {}
become takes_borrow(x);
}
pub struct Type;
fn main() {}