rust/tests/ui/explicit-tail-calls/ctfe-arg-move.rs
2024-07-07 17:11:05 +02:00

16 lines
245 B
Rust

//@ check-pass
#![allow(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() {}