trpl-zh-cn/listings/ch03-common-programming-concepts/no-listing-12-tuple-indexing/src/main.rs
2022-02-06 16:43:51 +08:00

10 lines
137 B
Rust
Executable File

fn main() {
let x: (i32, f64, u8) = (500, 6.4, 1);
let five_hundred = x.0;
let six_point_four = x.1;
let one = x.2;
}