2018-11-09 19:31:14 +00:00
|
|
|
// primitive_types5.rs
|
2023-05-29 17:39:08 +00:00
|
|
|
//
|
2018-11-09 19:31:14 +00:00
|
|
|
// Destructure the `cat` tuple so that the println will work.
|
2023-05-29 17:39:08 +00:00
|
|
|
//
|
|
|
|
// Execute `rustlings hint primitive_types5` or use the `hint` watch subcommand
|
|
|
|
// for a hint.
|
2018-11-09 19:31:14 +00:00
|
|
|
|
2019-11-11 12:38:24 +00:00
|
|
|
// I AM NOT DONE
|
|
|
|
|
2018-11-09 19:31:14 +00:00
|
|
|
fn main() {
|
|
|
|
let cat = ("Furry McFurson", 3.5);
|
|
|
|
let /* your pattern here */ = cat;
|
|
|
|
|
|
|
|
println!("{} is {} years old.", name, age);
|
|
|
|
}
|