diff options
| author | Hunter Kvalevog <hunter@kvog.sh> | 2026-09-27 15:36:09 -0500 |
|---|---|---|
| committer | Hunter Kvalevog <hunter@kvog.sh> | 2026-09-27 15:36:09 -0500 |
| commit | c7eff9175d93ada8b6d50b511d7027a91b1a184b (patch) | |
| tree | 64b2fee39bf0186f4ebd3269a1b99e59ea1bd5a5 /rustlings/exercises/14_generics/generics1.rs | |
| parent | b9b008c1d4a730335bdc9d465b0fdf7869fb09d4 (diff) | |
rustlings: complete 14
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; |