2018-11-09 13:31:14 -06:00
|
|
|
// primitive_types5.rs
|
|
|
|
// Destructure the `cat` tuple so that the println will work.
|
2019-11-11 09:51:38 -06:00
|
|
|
// Execute `rustlings hint primitive_types5` for hints!
|
2018-11-09 13:31:14 -06:00
|
|
|
|
2019-11-11 06:38:24 -06:00
|
|
|
// I AM NOT DONE
|
|
|
|
|
2018-11-09 13:31:14 -06:00
|
|
|
fn main() {
|
|
|
|
let cat = ("Furry McFurson", 3.5);
|
|
|
|
let /* your pattern here */ = cat;
|
|
|
|
|
|
|
|
println!("{} is {} years old.", name, age);
|
|
|
|
}
|