update at 2022-03-02 08:00:22 by ehlxr
This commit is contained in:
parent
80ccdf64bd
commit
c2c3d879cc
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user