Sign in
android
/
toolchain
/
rustc
/
15a6560abe9880705f51d219c1fa94f880dbaf35
/
.
/
src
/
doc
/
book
/
listings
/
ch04-understanding-ownership
/
no-listing-16-no-dangle
/
src
/
main.rs
blob: 9c20a3b2d6426b8024ada035016431259663ec08 [
file
] [
log
] [
blame
]
fn
main
()
{
let
string
=
no_dangle
();
}
// ANCHOR: here
fn
no_dangle
()
->
String
{
let
s
=
String
::
from
(
"hello"
);
s
}
// ANCHOR_END: here