book/listings/ch03-common-programming-con.../no-listing-11-destructuring.../src/main.rs

8 lines
112 B
Rust

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