1 //! Calculate A+B. 2 //! 3 //! From: https://rosettacode.org/wiki/A+B 4 use std :: io ; 5 6 fn main () { 7 let mut line = String :: new (); 8 io :: stdin (). read_line ( & mut line ). expect ( "stdin" ); 9 10 let mut i : i64 = 0 ; 11 for word in line . split_whitespace () { 12 i += word 13 . parse ::< i64 >() 14 . expect ( "interpret input as numbers" ); 15 } 16 println! ( "{}" , i ); 17 } ~ ./hi-nvim-rs-web/code-examples/rust.rs  14,51          All -- VISUAL LINE -- 3