1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-07-03 00:46:57 +02:00
Files
exercises
advanced_errors
clippy
collections
conversions
enums
README.md
enums1.rs
enums2.rs
enums3.rs
mod.rs
error_handling
functions
generics
if
intro
macros
modules
move_semantics
option
primitive_types
standard_library_types
strings
structs
tests
threads
traits
variables
README.md
mod.rs
quiz1.rs
quiz2.rs
quiz3.rs
quiz4.rs
src
tests
.all-contributorsrc
.editorconfig
.gitignore
.gitpod.yml
.replit
AUTHORS.md
CHANGELOG.md
CONTRIBUTING.md
Cargo.lock
Cargo.toml
LICENSE
README.md
info.toml
install.ps1
install.sh
rustlings/exercises/enums/enums1.rs

17 lines
357 B
Rust
Raw Normal View History

2019-10-28 22:49:49 -05:00
// enums1.rs
// Make me compile! Execute `rustlings hint enums1` for hints!
2019-10-28 22:49:49 -05:00
// I AM NOT DONE
2019-10-28 22:49:49 -05:00
#[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);
}