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!");