It doesn't exactly, no. There are linters and a compiler-enforced check preventing unused variables. Overall it's pretty easy to accidentally drop errors or overwrite them before checking.
So no, it doesn't.
So no, it doesn't.
Hey, it's better than lurking undefined behavior and data corruption issues!
Doesn't keep your binary from crashing, though.