1
0
Fork 0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-05-20 15:56:14 +02:00
rustlings/exercises/primitive_types/primitive_types5.rs

16 lines
346 B
Rust

// primitive_types5.rs
//
// Destructure the `cat` tuple so that the println will work.
//
// Execute `rustlings hint primitive_types5` or use the `hint` watch subcommand
// for a hint.
// I AM NOT DONE
fn main() {
let cat = ("Furry McFurson", 3.5);
let /* your pattern here */ = cat;
println!("{} is {} years old.", name, age);
}