trpl-zh-cn/listings/ch15-smart-pointers/listing-15-06/src/main.rs
2022-02-06 16:43:51 +08:00

8 lines
91 B
Rust
Executable File

fn main() {
let x = 5;
let y = &x;
assert_eq!(5, x);
assert_eq!(5, *y);
}