rustlings_solutions/enums/enums1.rs

19 lines
293 B
Rust
Raw Normal View History

2024-01-17 14:52:52 -05:00
// 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);
}