update at 2022-03-02 08:00:22 by ehlxr

This commit is contained in:
ehlxr 2022-03-02 08:00:22 +08:00
parent 80ccdf64bd
commit c2c3d879cc

View File

@ -1083,4 +1083,12 @@ fn main() {
Wizard::fly(&person); Wizard::fly(&person);
// person.fly(); // person.fly();
Human::fly(&person); 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);