mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
16 lines
245 B
Rust
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() {}
|