mirror of
https://github.com/notohh/rustlings.git
synced 2024-10-30 16:59:12 -04:00
16 lines
314 B
Rust
16 lines
314 B
Rust
|
// test1.rs
|
||
|
// Make me compile! Scroll down for hints :)
|
||
|
|
||
|
fn something() -> [f32; 120] {
|
||
|
???
|
||
|
}
|
||
|
|
||
|
fn something_else() -> String {
|
||
|
???
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
println!("This array is {} items long, and it should be 120", something().len());
|
||
|
println!("This function returns a string: {}", something_else());
|
||
|
}
|