use std::io::stdin; use std::io::BufRead; use std::io::BufReader; fn main() { for x in (1..).step_by(1000000000) { println!("{}", x); } }
Standard input is empty
1 1000000001 2000000001
thread 'main' panicked at 'overflow in RangeFrom::nth', src/libcore/option.rs:1038:5 note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.