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.

17 lines
379 B

// enums1.rs
// 让我能够编译!执行 `rustex hint enums1` 获取提示 :)
// I AM NOT DONE
#[derive(Debug)]
enum Message {
// TODO遵照下面的使用方式来定义几种 Message 的类型
}
fn main() {
println!("{:?}", Message::Quit);
println!("{:?}", Message::Echo);
println!("{:?}", Message::Move);
println!("{:?}", Message::ChangeColor);
}