Answers for "rust match wildcard"

0

rust match wildcard

let x = 1;

match x {
    1 => println!("one"),
    2 => println!("two"),
    3 => println!("three"),
    4 => println!("four"),
    5 => println!("five"),
    _ => println!("something else"),
}
Posted by: Guest on December-19-2021

Browse Popular Code Answers by Language