Started work on generics

This commit is contained in:
Justin Kelz 2022-04-04 10:08:02 -07:00
parent c11a76cdf7
commit 08fd649796

View File

@ -3,9 +3,8 @@
// Execute `rustlings hint generics1` for hints! // Execute `rustlings hint generics1` for hints!
// I AM NOT DONE
fn main() { fn main() {
let mut shopping_list: Vec<?> = Vec::new(); let mut shopping_list: Vec<&str> = Vec::new(); // Just needed the type to expect at compile time
shopping_list.push("milk"); shopping_list.push("milk");
} }