rust/tests/ui/explicit-tail-calls/ctfe-arg-move.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
245 B
Rust
Raw Normal View History

2023-06-28 10:34:10 -05:00
//@ 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() {}