(Rust does not guarantee the prevention of memory leaks, to be clear)
It is also very difficult to come up with a definition of "memory leak" that doesn't include programmer intention, and so it's not clear that you can come up with static analysis to preclude it.
The point is defense in depth.