fork(2) download
  1. use std::io::stdin;
  2. use std::io::BufRead;
  3. use std::io::BufReader;
  4.  
  5. fn main() {
  6. for x in (1..).step_by(1000000000) {
  7. println!("{}", x);
  8. }
  9. }
  10.  
Runtime error #stdin #stdout #stderr 0.01s 5552KB
stdin
Standard input is empty
stdout
1
1000000001
2000000001
stderr
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.