diff options
| author | Hunter Kvalevog <hunter@kvog.sh> | 2026-09-19 17:51:45 -0500 |
|---|---|---|
| committer | Hunter Kvalevog <hunter@kvog.sh> | 2026-09-19 17:51:45 -0500 |
| commit | 2186d3558cb5dbe9b8712b9ad2204527b9ee70fc (patch) | |
| tree | a88b701ddca88d16b10f1128f13fbc021ed299fd /rustlings/solutions/08_enums/enums1.rs | |
| parent | 13c7b05a26b78cb63bed5d2afdf8eb927197286e (diff) | |
rustlings: complete 08
Diffstat (limited to 'rustlings/solutions/08_enums/enums1.rs')
| -rw-r--r-- | rustlings/solutions/08_enums/enums1.rs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/rustlings/solutions/08_enums/enums1.rs b/rustlings/solutions/08_enums/enums1.rs index dcf2377..97a5cc0 100644 --- a/rustlings/solutions/08_enums/enums1.rs +++ b/rustlings/solutions/08_enums/enums1.rs @@ -1,4 +1,16 @@ +#[derive(Debug)] +enum Message { + Resize, + Move, + Echo, + ChangeColor, + Quit, +} + fn main() { - // DON'T EDIT THIS SOLUTION FILE! - // It will be automatically filled after you finish the exercise. + println!("{:?}", Message::Resize); + println!("{:?}", Message::Move); + println!("{:?}", Message::Echo); + println!("{:?}", Message::ChangeColor); + println!("{:?}", Message::Quit); } |