fork download
  1. fn main() {
  2. let id = Some(42);
  3.  
  4. match id {
  5. Some(x) => if x == 10 { println!("{}", x) },
  6. None => println!("hm")
  7. }
  8. }
Success #stdin #stdout 0s 10960KB
stdin
Standard input is empty
stdout
Standard output is empty