From 41882d125e9440b8fe26c5bd76916051edf52a9d Mon Sep 17 00:00:00 2001 From: Alex Bondar Date: Thu, 24 Oct 2024 16:24:31 +0200 Subject: [PATCH] tuple extension --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 1b6dcef..28908e6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -82,7 +82,10 @@ fn rebind() { } fn tuples() { - println!("tuples destructuring"); + println!("tuples"); + + let tup: (u8,u16) = (0u8,1u16); + println!("{:?}", tup); let (mut x, y) = (1, 2); x += 2;