feat: generics done

This commit is contained in:
2026-09-11 17:37:16 +02:00
parent fe01747f82
commit b94cdfd4c4
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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<i16> = Vec::new();
// Don't change the lines below.
let n1: u8 = 42;