1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-09-20 00:08:06 +02:00
rustlings/exercises/test1.rs

16 lines
314 B
Rust
Raw Normal View History

2019-01-09 21:47:50 +01:00
// 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());
}