3 ms·
Because when you drop that reference, the memory won't be reclaimed, and destructors won't run. References in Rust aren't like references in GC languages. They
by pornel 4y ago
Because when you drop that reference, the memory won't be reclaimed, and destructors won't run.
References in Rust aren't like references in GC languages. They don't control object's lifetime.