When running the same code on my local machine with the following version of rust and cargo:
Rust runtime would produce a nice output and panic when an i32 or i64 overflows
thread 'main' panicked at 'attempt to add with overflow', src/main.rs:60:20
note: run with `RUST_BACKTRACE=1` environment variable to display a backtraceHowever, the Rust runtime on LeetCode would not panic, and it would yield an wrong answer.
It would be nice if LeetCode can enable the overflow-checks for Rust runtime.