Hacker News new | ask | show | jobs
by FreeFull 4433 days ago
That actually lets you change what y points at, but you can't mutate x through y. If you want to mutate x, you need something like

    let y = &mut x;
which will result in an error due to x not being mutable.