mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-24 21:32:15 +08:00
11 lines
173 B
Rust
Executable File
11 lines
173 B
Rust
Executable File
fn main() {
|
|
// ANCHOR: here
|
|
let mut s = String::from("hello");
|
|
|
|
let r1 = &mut s;
|
|
let r2 = &mut s;
|
|
|
|
println!("{}, {}", r1, r2);
|
|
// ANCHOR_END: here
|
|
}
|