Admittedly, I'm fairly new to Rust, but I love what I'm seeing so far. That said, I'm running into an issue where I'm getting the error:
error: only the builtin traits can be used as closure or object bounds [E0225]
defaults: HashMap<String, Box<Any + From<String> + PartialOrd>>,
^~~~~~~~~~~~
for the following code:
pub struct Builder {
defaults: HashMap<String, Box<Any + From<String> + PartialOrd>>,
...
}
If I remove the bound on From I get the same error but for PartialOrd. I don't understand why since I'm fairly certain both From and PartialOrd are builtin traits. Any help would be appreciated.