mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-25 05:42:18 +08:00
8 lines
232 B
Rust
8 lines
232 B
Rust
|
fn main() {
|
||
|
// ANCHOR: here
|
||
|
let s1 = String::from("Hello, ");
|
||
|
let s2 = String::from("world!");
|
||
|
let s3 = s1 + &s2; // note s1 has been moved here and can no longer be used
|
||
|
// ANCHOR_END: here
|
||
|
}
|