You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/main.rs:22:15: 22:24 error: mismatched types: expected `u32` but found `core::option::Option<u32>` (expected u32 but found enum core::option::Option)
474
-
src/main.rs:22 match cmp(input_num, secret_number) {
473
+
src/main.rs:21:15: 21:24 error: mismatched types: expected `u32`, found `core::result::Result<u32, core::num::ParseIntError>` (expected u32, found enum `core::result::Result`) [E0308]
474
+
src/main.rs:21 match cmp(input_num, secret_number) {
475
475
^~~~~~~~~
476
476
error: aborting due to previous error
477
477
```
478
478
479
-
Oh yeah! Our `input_num` has the type`Option<u32>`, rather than `u32`. We
480
-
need to unwrap the Option. If you remember from before, `match` is a great way
479
+
Oh yeah! Our `input_num` has the type`Result<u32, <some error>>`, rather than `u32`. We
480
+
need to unwrap the Result. If you remember from before, `match` is a great way
0 commit comments