mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-08 03:39:18 +00:00
commit
02c5ad1e34
@ -5,10 +5,11 @@
|
|||||||
// Execute `rustlings hint primitive_types3` or use the `hint` watch subcommand
|
// Execute `rustlings hint primitive_types3` or use the `hint` watch subcommand
|
||||||
// for a hint.
|
// for a hint.
|
||||||
|
|
||||||
// I AM NOT DONE
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let a = ???
|
// let a = [0; 100];
|
||||||
|
let a : [i32;100] = (0..100).collect::<Vec<i32>>().try_into().unwrap_or_else(|v : Vec<i32>| panic!("Expected a vec length of {} but it was {}",100,v.len()));
|
||||||
|
|
||||||
if a.len() >= 100 {
|
if a.len() >= 100 {
|
||||||
println!("Wow, that's a big array!");
|
println!("Wow, that's a big array!");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user