3.2. Data Types
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;
}
This program creates the tuple x and then accesses each element of the tuple using their respective indices.
indices [índəsìːz]