e620daf
1 2 3 4 5 6 7 8 9 10 11
enum Color { Red, Green, Blue, } fn main () { let c = Red; println!("{}", match c { Red => "r", Green => "g" }); }