Guest User

Untitled

a guest
Aug 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #![allow(unreachable_code)]
  2.  
  3.  
  4. fn main() {
  5. println!("{:?}", {
  6. (0x80000000_u32 as i32) % -1_i32
  7. });
  8. }
  9.  
  10.  
  11. /* ~~~~=== stderr ===~~~~
  12. Compiling playground v0.0.1 (file:///playground)
  13. Finished dev [unoptimized + debuginfo] target(s) in 1.10s
  14. Running `target/debug/playground`
  15. thread 'main' panicked at 'attempt to calculate the remainder with overflow', src/main.rs:6:9
  16. note: Run with `RUST_BACKTRACE=1` for a backtrace.
  17.  
  18. */
  19.  
  20. /* ~~~~=== stdout ===~~~~
  21.  
  22. */
Add Comment
Please, Sign In to add comment