86dccc4ca7
a description starts with the filename, has an optional description and ends with help information
20 lines
405 B
Rust
20 lines
405 B
Rust
// enums1.rs
|
|
//
|
|
// Make me compile!
|
|
//
|
|
// If you need help, open the corresponding README.md or run: rustlings hint enums1
|
|
|
|
// I AM NOT DONE
|
|
|
|
#[derive(Debug)]
|
|
enum Message {
|
|
// TODO: define a few types of messages as used below
|
|
}
|
|
|
|
fn main() {
|
|
println!("{:?}", Message::Quit);
|
|
println!("{:?}", Message::Echo);
|
|
println!("{:?}", Message::Move);
|
|
println!("{:?}", Message::ChangeColor);
|
|
}
|