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() {}
|