`STATUS_STACK_BUFFER_OVERRUN` on Windows without any usage of unsafe

Compiling your program with rustc 1.87.0-nightly (43f0014ef 2025-03-25) and running it on Linux also causes a memory corruption error:

Done. Or am I?

thread 'main' panicked at test.rs:6:9:
Unhappy
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: thread local panicked on drop
Segmentation fault (core dumped)

This post suggests that your error indeed indicates memory corruption. Memory corruption shouldn't happen in safe Rust.

Which compiler version are you using?