mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-24 14:37:32 -05:00
14 lines
251 B
Rust
14 lines
251 B
Rust
#[derive(Debug)]
|
|
enum Message {
|
|
Quit,
|
|
Echo,
|
|
Move,
|
|
ChangeColor,
|
|
}
|
|
|
|
fn main() {
|
|
println!("{:?}", Message::Quit);
|
|
println!("{:?}", Message::Echo);
|
|
println!("{:?}", Message::Move);
|
|
println!("{:?}", Message::ChangeColor);
|
|
}
|