Re:Date bug in Rust-based coreutils affects Ubuntu 25.10 aut...
by gpm on Friday October 24, 2025 @11:25AM
(#45695617)
No I'm rather explicitly considering the joint behavior or the borrow checker and RAII.
With only RAII you don't get the last reference part.
Yes, there are exceptions, it's a roughly correct analogy not a precise description.
You're confusing the borrow checker with RAII.
Dropping the last reference to an object does nothing (and even the exclusive &mut is not an "owning" reference). Dropping the object itself is what automatically frees it. See also Box::leak.