use std::io::stdin;use std::io::BufRead;use std::io::BufReader; fn main() { let tarasNumber = i32::abs(std::i32::MIN); let tarasFail = tarasNumber / -1; println!("tarasNumber:{}", tarasNumber); println!("tarasFail:{}", tarasFail);}
Standard input is empty
Standard output is empty
thread 'main' panicked at 'attempt to divide with overflow', prog.rs:7:18 note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!