mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-21 13:32:23 -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);
|
|
}
|