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

master
ehlxr 2022-03-02 08:00:22 +08:00
parent 80ccdf64bd
commit c2c3d879cc
1 changed files with 8 additions and 0 deletions

View File

@ -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);