Why do compilers not warn about this?

No. Like Java, C#, Dart, Swift, Objective-C. I wouldn't classify JavaScript as a pajeet language. JS is just shit.

...

Compile with rustc. Safe code can't access freed memory. fn main() { let v = vec!(0, 1, 2, 3); match () { () if free(v) => { unreachable!(); } _ => { println!("{:?}", v); } }}fn free(_: T) -> bool { false} This outputs [0, 0, 0, 0] Ooooooopsie

Forgot playground link: play.rust-lang.org/?gist=17f8c11e7e05b6b5f069eb23447387ff&version=stable&mode=release

Attached: 13784358234.jpg (260x222, 12.73K)