From 2caeecceb20d92d91dee1f574c0566caf4ebaa18 Mon Sep 17 00:00:00 2001 From: Fredrik Klingenberg Date: Sun, 19 Nov 2023 10:35:26 +0100 Subject: [PATCH] creating a vector example Signed-off-by: Fredrik Klingenberg --- projects/collections/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/collections/src/main.rs b/projects/collections/src/main.rs index e7a11a9..ddebb46 100644 --- a/projects/collections/src/main.rs +++ b/projects/collections/src/main.rs @@ -1,3 +1,6 @@ fn main() { println!("Hello, world!"); + + let _v: Vec = Vec::new(); + let _w = vec![1, 2, 3]; }