Rust ownership - borrow String



examples/ownership/string-borrow/src/main.rs
fn main() {
    let x = String::from("Foo Bar");
    println!("{x}");
    let y = &x;
    println!("{y}");
    println!("{x}");
    println!("{y}");
}