3 ms·
In Rust: let x = std::u32::MAX + 1; This line will generate a warning upon build, and in a debug build, will panic. In a release build, it will overflow.
by steveklabnik 11y ago
In Rust:
let x = std::u32::MAX + 1;
This line will generate a warning upon build, and in a debug build, will panic. In a release build, it will overflow.