rustlings

solving rustlings ft. dracuxan
git clone [email protected]:dracuxan/rustlings.git
Log | Files | Refs

primitive_types5.rs (210B)


      1 fn main() {
      2     let cat = ("Furry McFurson", 3.5);
      3 
      4     // TODO: Destructure the `cat` tuple in one statement so that the println works.
      5     let (name, age) = cat;
      6 
      7     println!("{name} is {age} years old");
      8 }