diff options
Diffstat (limited to 'rustlings/exercises/14_generics/generics1.rs')
| -rw-r--r-- | rustlings/exercises/14_generics/generics1.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rustlings/exercises/14_generics/generics1.rs b/rustlings/exercises/14_generics/generics1.rs index 87ed990..7e5571f 100644 --- a/rustlings/exercises/14_generics/generics1.rs +++ b/rustlings/exercises/14_generics/generics1.rs @@ -6,7 +6,7 @@ fn main() { // TODO: Fix the compiler error by annotating the type of the vector // `Vec<T>`. Choose `T` as some integer type that can be created from // `u8` and `i8`. - let mut numbers = Vec::new(); + let mut numbers: Vec<i32> = Vec::new(); // Don't change the lines below. let n1: u8 = 42; |