rustlings/solutions/08_enums/enums1.rs

17 lines
302 B
Rust
Raw Normal View History

2024-10-28 20:46:17 +00:00
#[derive(Debug)]
enum Message {
Resize,
Move,
Echo,
ChangeColor,
Quit,
}
fn main() {
println!("{:?}", Message::Resize);
println!("{:?}", Message::Move);
println!("{:?}", Message::Echo);
println!("{:?}", Message::ChangeColor);
println!("{:?}", Message::Quit);
}