Sign in
android
/
toolchain
/
rustc
/
15a6560abe9880705f51d219c1fa94f880dbaf35
/
.
/
src
/
doc
/
book
/
listings
/
ch08-common-collections
/
listing-08-18
/
src
/
main.rs
blob: 93939a69fb359238e170cd5f4aadbcdd672dca2d [
file
] [
log
] [
blame
]
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
}