Sign in
android
/
toolchain
/
rustc
/
15a6560abe9880705f51d219c1fa94f880dbaf35
/
.
/
src
/
doc
/
book
/
listings
/
ch04-understanding-ownership
/
no-listing-05-clone
/
src
/
main.rs
blob: 4e61cc1a1642910eb7767f2c42d23dc90fe34ce1 [
file
] [
log
] [
blame
]
fn
main
()
{
// ANCHOR: here
let
s1
=
String
::
from
(
"hello"
);
let
s2
=
s1
.
clone
();
println
!(
"s1 = {}, s2 = {}"
,
s1
,
s2
);
// ANCHOR_END: here
}