18 lines
328 B
Rust
18 lines
328 B
Rust
// enums1.rs
|
|
// Make me compile! Execute `rustlings hint enums1` for hints!
|
|
|
|
#[derive(Debug)]
|
|
enum Message {
|
|
Quit,
|
|
Echo,
|
|
Move,
|
|
ChangeColor,
|
|
}
|
|
|
|
fn main() {
|
|
println!("{:?}", Message::Quit);
|
|
println!("{:?}", Message::Echo);
|
|
println!("{:?}", Message::Move);
|
|
println!("{:?}", Message::ChangeColor);
|
|
}
|