1
0
mirror of https://github.com/KaiserY/trpl-zh-cn synced 2025-04-11 07:18:11 +08:00
trpl-zh-cn/listings/ch03-common-programming-concepts/no-listing-11-destructuring-tuples/src/main.rs

8 lines
110 B
Rust

fn main() {
let tup = (500, 6.4, 1);
let (x, y, z) = tup;
println!("The value of y is: {y}");
}