“let's say it's in vector. So I have a immutable reference…” — The Pragmatic Engineer at 23:56
“let's say it's in vector. So I have a immutable reference, I'm reading element five, and then I change the vector, I call clear. Then the borrow checker also ensures that you can't use the reference to object five afterwards. Yes, because now it has been as soon as you change it, it went”
0:00
1:04:59