- Published on
A 16-line program without unsafe reads a String after it is dropped. Every Rust on my laptop accepts it, and variants compile back to Rust 1.4 from 2015. I looked at the dead memory with gdb and AddressSanitizer, and found the check that the borrow checker skips.