rustlings/exercises/generics/generics1.rs
2021-01-06 15:07:44 +03:00

8 lines
190 B
Rust

// This shopping list program isn't compiling!
// Use your knowledge of generics to fix it.
fn main() {
let mut shopping_list: Vec<&str> = Vec::new();
shopping_list.push("milk");
}