mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-04 09:13:30 +02:00
primitive_types5 solution
This commit is contained in:
@@ -1 +1,8 @@
|
||||
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰
|
||||
fn main() {
|
||||
let cat = ("Furry McFurson", 3.5);
|
||||
|
||||
// Destructuring the tuple.
|
||||
let (name, age) = cat;
|
||||
|
||||
println!("{name} is {age} years old");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user