Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unreachable_code)]
- fn main() {
- println!("{:?}", {
- (0x80000000_u32 as i32) % -1_i32
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- Finished dev [unoptimized + debuginfo] target(s) in 1.10s
- Running `target/debug/playground`
- thread 'main' panicked at 'attempt to calculate the remainder with overflow', src/main.rs:6:9
- note: Run with `RUST_BACKTRACE=1` for a backtrace.
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment