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
error[E0308]: mismatched types
--> <anon>:2:26
|
2 | let i: Option<i32> = 42i32;
| ^^^^^ expected enum `std::option::Option`, found i32
|
= note: expected type `std::option::Option<i32>`
found type `i32`
= help: here are some functions which might fulfill your needs:
- .checked_abs()
- .checked_neg()
I think the first item in this list should be Some