rustlings/exercises/variables/variables4.rs
2022-07-16 22:49:41 +02:00

11 lines
260 B
Rust

// variables4.rs
// Make me compile! Execute the command `rustlings hint variables4` if you want a hint :)
fn main() {
let x: Option<i32> = Some(5);
match x {
Some(x) => println!("Number {}", x),
None => println!("kein wert"),
}
}