mirror of https://github.com/rust-lang/rustlings
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
187 B
Rust
8 lines
187 B
Rust
1 year ago
|
// This shopping list program isn't compiling! Use your knowledge of generics to
|
||
|
// fix it.
|
||
3 years ago
|
|
||
5 years ago
|
fn main() {
|
||
|
let mut shopping_list: Vec<?> = Vec::new();
|
||
|
shopping_list.push("milk");
|
||
|
}
|