about summary refs log tree commit diff
path: root/tests/ui/explicit-tail-calls/ctfe-arg-move.rs
blob: 610eb74a91e37ab4d14f2e18c7c5955535e4a2a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ check-pass
#![expect(incomplete_features)]
#![feature(explicit_tail_calls)]

pub const fn test(s: String) -> String {
    const fn takes_string(s: String) -> String {
        s
    }

    become takes_string(s);
}

struct Type;

fn main() {}