about summary refs log tree commit diff
path: root/tests/ui/explicit-tail-calls/ctfe-arg-good-borrow.rs
blob: a34482a3527258ae28ee8cb8c91defb05809ddda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ 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() {}