File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change
1
+ // test1.rs
2
+ // Make me compile! Scroll down for hints :)
3
+
4
+ fn something ( ) -> [ f32 ; 120 ] {
5
+ ???
6
+ }
7
+
8
+ fn something_else ( ) -> String {
9
+ ???
10
+ }
11
+
12
+ fn main ( ) {
13
+ println ! ( "This array is {} items long, and it should be 120" , something( ) . len( ) ) ;
14
+ println ! ( "This function returns a string: {}" , something_else( ) ) ;
15
+ }
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ pub fn verify() -> Result<(), ()> {
19
19
compile_only ( "exercises/primitive_types/primitive_types4.rs" ) ?;
20
20
compile_only ( "exercises/primitive_types/primitive_types5.rs" ) ?;
21
21
compile_only ( "exercises/primitive_types/primitive_types6.rs" ) ?;
22
+ compile_only ( "exercises/test1.rs" ) ?;
22
23
test ( "exercises/tests/tests1.rs" ) ?;
23
24
test ( "exercises/tests/tests2.rs" ) ?;
24
25
test ( "exercises/tests/tests3.rs" ) ?;
You can’t perform that action at this time.
0 commit comments