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
mismatched types
expected reference `&&std::string::String`
found reference `&std::option::Option<std::string::String>`
must_match.rs(4, 8): function defined here
Removing required fixes this.
I have tried some cheeky workarounds, like removing required on just the second field, but that doesn't work. For instance, some combination of making one required and the other not required does not work. The following presents the same error.
Version 0.18.1
Minimum demonstration.
Error.
Removing
required
fixes this.I have tried some cheeky workarounds, like removing
required
on just the second field, but that doesn't work. For instance, some combination of making one required and the other not required does not work. The following presents the same error.Edit: It actually appears that Options are totally incompatible, despite
Option<T: Eq>
generally working. This produces the same error.The text was updated successfully, but these errors were encountered: