mirror of https://github.com/rust-lang/rustlings
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
301 B
Rust
13 lines
301 B
Rust
// primitive_types5.rs
|
|
// Destructure the `cat` tuple so that the println will work.
|
|
// Execute `rustlings hint primitive_types5` for hints!
|
|
|
|
// I AM NOT DONE
|
|
|
|
fn main() {
|
|
let cat = ("Furry McFurson", 3.5);
|
|
let /* your pattern here */ = cat;
|
|
|
|
println!("{} is {} years old.", name, age);
|
|
}
|