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.
16 lines
352 B
Rust
16 lines
352 B
Rust
// primitive_types3.rs
|
|
// Create an array with at least 100 elements in it where the ??? is.
|
|
// Execute `rustlings hint primitive_types3` for hints!
|
|
|
|
// 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.");
|
|
}
|
|
}
|