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.