7 ms·
Small correction: Rust doesn't have exceptions. panic!() crashes the current thread with an optional error message, but it doesn't do stack traces and there's n
by GyrosOfWar 11y ago
Small correction: Rust doesn't have exceptions. panic!() crashes the current thread with an optional error message, but it doesn't do stack traces and there's no try/catch in the language (there's the try!() macro, but it works with Result<T, E> values, has nothing to do with panics).
- heinrich5991 11y agoIt records stack traces. Use the environment variable `RUST_BACKTRACE=1` to print them.