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
376 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);
}