#[allow(dead_code)]
enum Planet {
Mercury = 1, Venus, Earth
}
#[allow(dead_code)]
enum PreciousMetal {
Platinum = 1, Gold, Silver
}
let gold = PreciousMetal::Gold;
let earth = Planet::Earth;
println!("gold is {:#?}", gold as u32);
println!("earth is {:#?}", earth as u32);