rustlings/exercises/08_enums/enums1.rs
Denis-Cosmin NUTIU 06573e87ac initial commit
2024-10-28 22:46:17 +02:00

17 lines
360 B
Rust

#[derive(Debug)]
enum Message {
// TODO: Define a few types of messages as used below.
Resize,
Move,
Echo,
ChangeColor,
Quit
}
fn main() {
println!("{:?}", Message::Resize);
println!("{:?}", Message::Move);
println!("{:?}", Message::Echo);
println!("{:?}", Message::ChangeColor);
println!("{:?}", Message::Quit);
}