rustlings/exercises/04_primitive_types/primitive_types5.rs

9 lines
225 B
Rust

fn main() {
let cat = ("Furry McFurson", 3.5);
// TODO: Destructure the `cat` tuple in one statement so that the println works.
// let /* your pattern here */ = cat;
println!("{name} is {age} years old");
}