This is the equivelent of `~Foo() { Foo f; }` isn't it?
fn main() {
let a = 3;
assert(a == 2, "a should definitely be 2");
}
Rust doesn't mean no bugs ever, and it doesn't mean no crashes. It protects you from a very specific class of severe bugs, and it has a pretty good set of built-in primitives to help you write bug-free code in the other classes. No more, no less.