1
2
3
4
5
6
7
8
9
10
11
12
13
14
use uniserde::walking_clone;

#[test]
fn demo() {
    let x = "test";
    let y = clone_str(&x);
    dbg!(y);
    todo!();
}

#[inline(never)]
pub fn clone_str(x: &str) -> &str {
    walking_clone(&x).unwrap()
}