I confess to feel weird at the idea to need a copy to print something twice
References avoid this:
fn show(s: &String) {
println!("s = {s}");
}
fn main() {
let s = String::from("hiya");
show(&s);
show(&s);
}