rustlings/exercises/enums/enums1.rs

20 lines
294 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);
}