Sign in
rust
/
rust
/
a5a286df89146c64afebc6dcbbd3f61ba67ae53b
/
.
/
tests
/
ui
/
use
/
use-after-move-based-on-type.rs
blob: ba7aa0345e19c81b28d23d116cf670ed9f14c651 [
file
]
fn
main
()
{
let
x
=
"Hello!"
.
to_string
();
let
_y
=
x
;
println
!(
"{}"
,
x
);
//~ ERROR borrow of moved value
}