mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-05-05 04:58:03 +08:00
8 lines
222 B
Rust
8 lines
222 B
Rust
fn main() {
|
|
// ANCHOR: here
|
|
let s1 = String::from("Hello, ");
|
|
let s2 = String::from("world!");
|
|
let s3 = s1 + &s2; // 注意 s1 被移动了,不能继续使用
|
|
// ANCHOR_END: here
|
|
}
|