mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-09 04:09:20 +00:00
solved the problem by modifying enum Message
This commit is contained in:
parent
435d485978
commit
14c156b7ac
@ -1,14 +1,14 @@
|
||||
// enums2.rs
|
||||
// Make me compile! Execute `rustlings hint enums2` for hints!
|
||||
|
||||
// I AM NOT DONE
|
||||
// DONE
|
||||
|
||||
#[derive(Debug)]
|
||||
enum Message {
|
||||
// TODO: define the different variants used below
|
||||
Move,
|
||||
Echo,
|
||||
ChangeColor,
|
||||
Move {x: i32, y: i32},
|
||||
Echo (String),
|
||||
ChangeColor (i32, i32, i32),
|
||||
Quit,
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user