trpl-zh-cn/listings/ch04-understanding-ownership/no-listing-06-copy/src/main.rs

9 lines
127 B
Rust
Raw Normal View History

2022-02-06 16:43:51 +08:00
fn main() {
// ANCHOR: here
let x = 5;
let y = x;
println!("x = {}, y = {}", x, y);
// ANCHOR_END: here
}