You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
323 B
18 lines
323 B
// enums1.rs
|
|
//
|
|
// No hints this time! ;)
|
|
|
|
// 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);
|
|
}
|