Closed mokurin000 closed 2 years ago
Deperated?
Deperated
Sorry , I mean, deprecated
Wouldn't the behavior be different, printing 5 with clone
and 6 without?
Wouldn't the behavior be different, printing 5 with
clone
and 6 without?
behavior will not change, so actually only this line will run.
needs change
the
println!
could work due to NLL even if there is noclone()
call, to solve this,*y += 1;
should be placed underprintln!
, so at the println line, y lives