Could you borrow a bit?
Rust Internals [Unofficial]
May 15, 2026
But you could return a type with a locally-stored bool that's assigned back on Drop, and you'd end up with nearly the same effect.
Discussion in the ATmosphere