rustlings_solutions/enums/enums1.rs
2024-01-17 14:52:52 -05:00

18 lines
293 B
Rust

// enums1.rs
//
// No hints this time! ;)
#[derive(Debug)]
enum Message {
Quit,
Echo,
Move,
ChangeColor
}
fn main() {
println!("{:?}", Message::Quit);
println!("{:?}", Message::Echo);
println!("{:?}", Message::Move);
println!("{:?}", Message::ChangeColor);
}