diff options
| author | Will Hack <18036720+willhack@users.noreply.github.com> | 2023-07-04 12:05:19 -0400 |
|---|---|---|
| committer | Will Hack <18036720+willhack@users.noreply.github.com> | 2023-07-04 12:05:19 -0400 |
| commit | 37cdea9183796909057d8b42ab2866fde1525a40 (patch) | |
| tree | 32ded9fd5584d744691156ea4eed5a71a611ef91 /info.toml | |
| parent | 0ab781c7a7e5240f86033a5c9d242ef5aca391aa (diff) | |
| parent | a7300da78dfd46a682a2f4960d31dfaa14ce8b84 (diff) | |
Merge branch 'main' into chore/update-hints
Diffstat (limited to 'info.toml')
| -rw-r--r-- | info.toml | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -167,6 +167,13 @@ For that first compiler error, it's important in Rust that each conditional block returns the same type! To get the tests passing, you will need a couple conditions checking different input values.""" +[[exercises]] +name = "if3" +path = "exercises/if/if3.rs" +mode = "test" +hint = """ +In Rust, every arm of an `if` expression has to return the same type of value. Make sure the type is consistent across all arms.""" + # QUIZ 1 [[exercises]] @@ -287,7 +294,7 @@ Also: Try accessing `vec0` after having called `fill_vec()`. See what happens!"" [[exercises]] name = "move_semantics2" path = "exercises/move_semantics/move_semantics2.rs" -mode = "test" +mode = "compile" hint = """ When running this exercise for the first time, you'll notice an error about "borrow of moved value". In Rust, when an argument is passed to a function and |
