2018-02-22 00:09:53 -06:00
|
|
|
// primitive_types3.rs
|
2020-07-10 21:01:38 -05:00
|
|
|
// Create an array with at least 100 elements in it where the ??? is.
|
2022-07-12 07:54:12 -05:00
|
|
|
// Execute `rustlings hint primitive_types3` or use the `hint` watch subcommand for a hint.
|
2016-02-07 11:12:24 -06:00
|
|
|
|
2019-11-11 06:38:24 -06:00
|
|
|
// I AM NOT DONE
|
|
|
|
|
2016-02-07 11:12:24 -06:00
|
|
|
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.");
|
|
|
|
}
|
|
|
|
}
|