add a test
This commit is contained in:
1 parent
b90f642029
commit
17e12433cb
2 files changed
+16
No files matched your search
@@ -0,0 +1,15 @@
|
||||
// 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());
|
||||
}
|
||||
Reference in new issue
Block a user