diff options
Diffstat (limited to 'ex4.rs')
| -rw-r--r-- | ex4.rs | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -1,14 +0,0 @@ -// ex4.rs -// Make me compile! - -fn something() -> Result<i32, std::num::ParseIntError> { - let x:i32 = "3".parse(); - Ok(x * 4) -} - -fn main() { - match something() { - Ok(..) => println!("You win!"), - Err(e) => println!("Oh no something went wrong: {}", e), - } -} |
