1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-12-01 22:51:45 +02:00

primitive_types5 solution

This commit is contained in:
mo8it
2024-06-19 14:17:06 +02:00
parent 2a1bc53771
commit 532c9ebb30
3 changed files with 13 additions and 6 deletions

View File

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