3 ms·
This is the equivelent of `~Foo() { Foo f; }` isn't it?
by a_t48 9y ago
This is the equivelent of `~Foo() { Foo f; }` isn't it?
- AndrewGaspar 9y agoYeah, not sure I understand the criticism here. This program also has a bug. 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.