mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-04 17:23:36 +02:00
primitive_types3 solution
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
// Create an array with at least 100 elements in it where the ??? is.
|
||||
|
||||
fn main() {
|
||||
let a = ???
|
||||
// TODO: Create an array with at least 100 elements in it where the ??? is.
|
||||
// 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")
|
||||
panic!("Array not big enough, more elements needed");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user