book/listings/ch04-understanding-ownership/no-listing-06-copy/src/main.rs

9 lines
123 B
Rust

fn main() {
// ANCHOR: here
let x = 5;
let y = x;
println!("x = {x}, y = {y}");
// ANCHOR_END: here
}