That’s one kind, and Rust’s “ownership” concept does mean there’s built-in compile time checks to prevent dangling pointers or unreachable memory. But there’s also just never de-allocating stuff you allocated even though it’s still reachable. Like you could just make a loop that allocates memory and never stops and that’s a memory leak, or more generally a “resource leak”, if you prefer.
Rust is really good at keeping you from having a reference to something that you think is valid but it turns out it got mutated way down in some class hierarchy and now it’s dead, so you have a null pointer or you double free, or whatever. But it can’t stop the case where your code is technically valid but the resource leak is caused by bad “logic” in your design, if that makes sense.
School dreams are very rare now, and when I have them the “cast” is all people from various adult jobs. I never knew my actual school mates as adults, so I guess my brain just can’t fill it in. If I was actually transported back to high school and saw them again it would probably feel like being surrounded by babies, so makes sense that “central casting” sends in adult stand-ins.
I’m always an adult too. What’s weird is I remember being a child. I remember my body being clumsy and awkward, I remember being confused by adult concepts, I remember being small. It never comes out in childhood dreams, I’m always my present age.