I’m new to Rust. After facing some memory leaks in C/C++, I was wondering if there are memory leaks in Rust. If it does, can you provide a simple example?
Furthermore, how rust handels with memory leaks?
I read that Rust handles with ‘dangling references’ by using the lifetime feature, is there something similar in Rust? mayabe a Garbage collector?