2020-07-10 21:01:38 -05:00
|
|
|
// This shopping list program isn't compiling!
|
2020-02-27 18:09:08 -06:00
|
|
|
// Use your knowledge of generics to fix it.
|
|
|
|
|
2022-07-14 11:11:05 -05:00
|
|
|
// Execute `rustlings hint generics1` or use the `hint` watch subcommand for a hint.
|
2021-05-11 14:50:05 -05:00
|
|
|
|
2020-02-27 18:09:08 -06:00
|
|
|
fn main() {
|
2023-02-24 11:51:24 -06:00
|
|
|
let mut shopping_list: Vec<&str> = Vec::new();
|
2020-02-27 18:09:08 -06:00
|
|
|
shopping_list.push("milk");
|
|
|
|
}
|