move old files to a separate directory
This commit is contained in:
14
old_curriculum/ex4.rs
Normal file
14
old_curriculum/ex4.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
// 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),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user