trpl-zh-cn/listings/ch05-using-structs-to-structure-related-data/no-listing-01-tuple-structs/src/main.rs
2022-02-06 16:43:51 +08:00

8 lines
138 B
Rust
Executable File

struct Color(i32, i32, i32);
struct Point(i32, i32, i32);
fn main() {
let black = Color(0, 0, 0);
let origin = Point(0, 0, 0);
}