From c2c3d879ccdc4ad3538ccf5f5dde0fe05bcaa392 Mon Sep 17 00:00:00 2001 From: ehlxr Date: Wed, 2 Mar 2022 08:00:22 +0800 Subject: [PATCH] update at 2022-03-02 08:00:22 by ehlxr --- src/main.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.rs b/src/main.rs index ec3ea67..400d421 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1083,4 +1083,12 @@ fn main() { Wizard::fly(&person); // person.fly(); Human::fly(&person); + + let black = Color1(0, 9, 10); + + let Color1(x, y, z) = black; + println!("{} {} {}", x, y, z); + println!("{} {} {}", black.0, black.1, black.2); } + +struct Color1(i32, i32, i32);