20 lines
458 B
Rust
20 lines
458 B
Rust
// primitive_types3.rs
|
|
//
|
|
// Create an array with at least 100 elements in it where the ??? is.
|
|
//
|
|
// Execute `rustlings hint primitive_types3` or use the `hint` watch subcommand
|
|
// for a hint.
|
|
|
|
// I AM NOT DONE
|
|
|
|
fn main() {
|
|
let a = ???
|
|
|
|
if a.len() >= 100 {
|
|
println!("Wow, that's a big array!");
|
|
} else {
|
|
println!("Meh, I eat arrays like that for breakfast.");
|
|
panic!("Array not big enough, more elements needed")
|
|
}
|
|
}
|