19 lines
293 B
Rust
19 lines
293 B
Rust
// enums1.rs
|
|
//
|
|
// No hints this time! ;)
|
|
|
|
#[derive(Debug)]
|
|
enum Message {
|
|
Quit,
|
|
Echo,
|
|
Move,
|
|
ChangeColor
|
|
}
|
|
|
|
fn main() {
|
|
println!("{:?}", Message::Quit);
|
|
println!("{:?}", Message::Echo);
|
|
println!("{:?}", Message::Move);
|
|
println!("{:?}", Message::ChangeColor);
|
|
}
|