From 4456897abfcf93e36cb5a33008bdc9ddb6d2473f Mon Sep 17 00:00:00 2001 From: akshitgautam42 Date: Sun, 12 Nov 2023 10:43:03 +0530 Subject: [PATCH] Exercise 19 --- exercises/04_primitive_types/primitive_types3.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/exercises/04_primitive_types/primitive_types3.rs b/exercises/04_primitive_types/primitive_types3.rs index 8b0de44e..2face631 100644 --- a/exercises/04_primitive_types/primitive_types3.rs +++ b/exercises/04_primitive_types/primitive_types3.rs @@ -5,10 +5,11 @@ // Execute `rustlings hint primitive_types3` or use the `hint` watch subcommand // for a hint. -// I AM NOT DONE + fn main() { - let a = ??? + // let a = [0; 100]; + let a : [i32;100] = (0..100).collect::>().try_into().unwrap_or_else(|v : Vec| panic!("Expected a vec length of {} but it was {}",100,v.len())); if a.len() >= 100 { println!("Wow, that's a big array!");